public class LinearScaler extends Scaler
Constructor | 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 | Description |
---|---|---|
protected void |
prepareScaling(double[] c) |
Set up the scaling.
|
protected byte |
scale(double val) |
Scale a single value
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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.