public class ValueRanger extends ValueProcessor
Instances are immutable.
trivialProcessor
Modifier | Constructor and Description |
---|---|
protected |
ValueRanger()
Constructs from nothing.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates if this instance is semantically identical to another object.
|
double |
getMax()
Returns the maximum, valid value.
|
double |
getMin()
Returns the minimum, valid value.
|
int |
hashCode()
Returns the hash code of this instance.
|
double |
process(double value)
Ranges a value.
|
double[] |
process(double[] values)
Ranges values.
|
float |
process(float value)
Ranges a value.
|
float[] |
process(float[] values)
Ranges values.
|
static ValueRanger |
valueRanger(double lower,
double upper)
Returns an instance of this class corresponding to valid-range limits.
|
public static ValueRanger valueRanger(double lower, double upper)
lower
- The lower limit of the valid range. May be
NaN or Double.NEGATIVE_INFINITY to indicate
no limit.upper
- The upper limit of the valid range. May be
NaN or Double.POSITIVE_INFINITY to indicate
no limit.public double getMin()
public double getMax()
public float process(float value)
process
in class ValueProcessor
value
- The value to be processed.public double process(double value)
process
in class ValueProcessor
value
- The values to be processed.public float[] process(float[] values)
process
in class ValueProcessor
values
- The value to be processed.public double[] process(double[] values)
process
in class ValueProcessor
values
- The values to be processed.public boolean equals(Object obj)
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.