Package uk.ac.starlink.ttools.plot2
Interface Scaling.RangeScaling
- All Superinterfaces:
Scaling
- Enclosing interface:
- Scaling
Interface for Scaling instances that can create Scalers from
a lower and upper bound.
-
Nested Class Summary
Nested classes/interfaces inherited from interface uk.ac.starlink.ttools.plot2.Scaling
Scaling.HistogramScaling, Scaling.RangeScaling
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateScaler
(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 Details
-
createScaler
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
-