public class LinearScaler extends Scaler
Constructor and Description |
---|
LinearScaler() |
LinearScaler(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 void |
prepareScaling(double[] c)
Set up the scaling.
|
protected byte |
scale(double val)
Scale a single value
|
getMaxOutput, getMaxVal, getMinOutput, getMinVal, getUseDefault, scaleArray, setMaxVal, setMinMax, setMinVal
public LinearScaler()
public LinearScaler(double minVal, double maxVal, int minOutput, int maxOutput)
protected void prepareScaling(double[] c)
prepareScaling
in class Scaler
c
- The array to be scaled.