Package skyview.util

Class Scaler

    • Constructor Detail

      • Scaler

        public Scaler()
        Provide default scaler.
      • Scaler

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

      • getUseDefault

        protected boolean getUseDefault()
      • getMinVal

        protected double getMinVal()
      • getMaxVal

        protected double getMaxVal()
      • getMinOutput

        protected int getMinOutput()
      • getMaxOutput

        protected int getMaxOutput()
      • setMinVal

        protected void setMinVal​(double minVal)
      • setMaxVal

        protected void setMaxVal​(double maxVal)
      • scaleArray

        public Object scaleArray​(Object array)
        Scale an array assumed to be a double array of arbitrary dimensionality.
      • setMinMax

        protected void setMinMax​(double[] c)
      • prepareScaling

        protected abstract void prepareScaling​(double[] array)
        Get ready for scaling in this particular instance.
      • scale

        protected abstract byte scale​(double val)
        Scale a single number.