Package skyview.util
Class Scaler
- java.lang.Object
-
- skyview.util.Scaler
-
- Direct Known Subclasses:
HistScaler,LinearScaler,LogScaler,SqrtScaler
public abstract class Scaler extends java.lang.ObjectScale an object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected intgetMaxOutput()protected doublegetMaxVal()protected intgetMinOutput()protected doublegetMinVal()protected booleangetUseDefault()protected abstract voidprepareScaling(double[] array)Get ready for scaling in this particular instance.protected abstract bytescale(double val)Scale a single number.java.lang.ObjectscaleArray(java.lang.Object array)Scale an array assumed to be a double array of arbitrary dimensionality.protected voidsetMaxVal(double maxVal)protected voidsetMinMax(double[] c)protected voidsetMinVal(double minVal)
-
-
-
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 java.lang.Object scaleArray(java.lang.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.
-
-