Package skyview.util

Class HistScaler


  • public class HistScaler
    extends Scaler
    Scale an object linearly.
    • Constructor Summary

      Constructors 
      Constructor Description
      HistScaler()
      Provide default scaler that positive values will scale the array logarithmically between 0-255.
      HistScaler​(double minVal, double maxVal, int minOutput, int maxOutput)
      Provide a scaler with a specified scaling range to a specified range of bytes.
    • Constructor Detail

      • HistScaler

        public HistScaler()
        Provide default scaler that positive values will scale the array logarithmically between 0-255.
      • HistScaler

        public HistScaler​(double minVal,
                          double maxVal,
                          int minOutput,
                          int maxOutput)
        Provide a scaler with a specified scaling range to a specified range of bytes.
    • Method Detail

      • setMinMax

        protected void setMinMax​(double[] old)
        Overrides:
        setMinMax in class Scaler
      • prepareScaling

        protected void prepareScaling​(double[] c)
        Description copied from class: Scaler
        Get ready for scaling in this particular instance.
        Specified by:
        prepareScaling in class Scaler
      • scale

        protected byte scale​(double val)
        Description copied from class: Scaler
        Scale a single number.
        Specified by:
        scale in class Scaler