Package uk.ac.starlink.ttools.plot2
Interface Scaling.RangeScaling
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface uk.ac.starlink.ttools.plot2.Scaling
Scaling.HistogramScaling, Scaling.RangeScaling
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Scaler
createScaler(double lo, double hi)
Returns a scaler instance that can scale input values in a given range.-
Methods inherited from interface uk.ac.starlink.ttools.plot2.Scaling
getDescription, getName, isLogLike
-
-
-
-
Method Detail
-
createScaler
Scaler createScaler(double lo, double hi)
Returns a scaler instance that can scale input values in a given range. The given bounds define the range of input values that will be mapped to the fixed (0..1) output range. Input values outside that range will in general result in clipping, so for the returned scalers
:s.scaleValue(x) == s.scaleValue(lo) for x<lo s.scaleValue(x) == s.scaleValue(hi) for x>hi
- Parameters:
lo
- lower bound of unclipped input data valuehi
- upper bound of unclipped input data value- Returns:
- instance
-
-