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, setMinValpublic LinearScaler()
public LinearScaler(double minVal,
double maxVal,
int minOutput,
int maxOutput)
protected void prepareScaling(double[] c)
prepareScaling in class Scalerc - The array to be scaled.