Package skyview.util
Class LinearScaler
- java.lang.Object
-
- skyview.util.Scaler
-
- skyview.util.LinearScaler
-
public class LinearScaler extends Scaler
Scale an object linearly.
-
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
prepareScaling(double[] c)
Set up the scaling.protected byte
scale(double val)
Scale a single value-
Methods inherited from class skyview.util.Scaler
getMaxOutput, getMaxVal, getMinOutput, getMinVal, getUseDefault, scaleArray, setMaxVal, setMinMax, setMinVal
-
-
-
-
Method Detail
-
prepareScaling
protected void prepareScaling(double[] c)
Set up the scaling.- Specified by:
prepareScaling
in classScaler
- Parameters:
c
- The array to be scaled.
-
-