public class Scalings extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
canScale(Scaling[] scalings,
Span dataSpan,
Span fixSpan)
Determines whether all of a list of scalings can be used to
create Scaler objects from given span instances.
|
static Scaling.RangeScaling |
createAsinhScaling(String name,
double delta)
Constructs an asinh-based scaling.
|
static Ranger |
createRanger(Scaling[] scalings)
Returns a ranger suitable for use with all of a given list of scalings.
|
static double |
unscale(Scaler scaler,
double lo,
double hi,
double frac)
Utility method to perform the inverse operation of Scaler.scaleValue.
|
public static Ranger createRanger(Scaling[] scalings)
Span
, that span's createScaler
method
can be used with any of the scalings presented here.scalings
- list of scalings required for compatibility;
null values are permitted, and add no constraintspublic static boolean canScale(Scaling[] scalings, Span dataSpan, Span fixSpan)
scalings
- scaling instances for which scalers may be requireddataSpan
- span obtained from ranging datafixSpan
- span obtained by direct user input of boundspublic static Scaling.RangeScaling createAsinhScaling(String name, double delta)
name
- scaling namedelta
- output difference for lower-end input unit differencepublic static double unscale(Scaler scaler, double lo, double hi, double frac)
scaler
- scaler instancelo
- lower bound of input data valuehi
- upper bound of input data valuefrac
- required output value of scaleValue method,
must be in range 0..1frac
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.