public abstract class Scaler
extends java.lang.Object
Constructor and Description |
---|
Scaler()
Provide default scaler.
|
Scaler(double minVal,
double maxVal,
int minOutput,
int maxOutput)
Provide a scaler with a specified scaling
range to a specified range of bytes.
|
Modifier and Type | Method and Description |
---|---|
protected int |
getMaxOutput() |
protected double |
getMaxVal() |
protected int |
getMinOutput() |
protected double |
getMinVal() |
protected boolean |
getUseDefault() |
protected abstract void |
prepareScaling(double[] array)
Get ready for scaling in this particular instance.
|
protected abstract byte |
scale(double val)
Scale a single number.
|
java.lang.Object |
scaleArray(java.lang.Object array)
Scale an array assumed to be a double array of arbitrary
dimensionality.
|
protected void |
setMaxVal(double maxVal) |
protected void |
setMinMax(double[] c) |
protected void |
setMinVal(double minVal) |
public Scaler()
public Scaler(double minVal, double maxVal, int minOutput, int maxOutput)
protected boolean getUseDefault()
protected double getMinVal()
protected double getMaxVal()
protected int getMinOutput()
protected int getMaxOutput()
protected void setMinVal(double minVal)
protected void setMaxVal(double maxVal)
public java.lang.Object scaleArray(java.lang.Object array)
protected void setMinMax(double[] c)
protected abstract void prepareScaling(double[] array)
protected abstract byte scale(double val)