public final class ScaleUnpacker extends ValueUnpacker
Instances are immutable.
trivialProcessor
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates if this instance is semantically identical to another object.
|
double |
getIncrement()
Returns the absolute value of the scale factor.
|
int |
hashCode()
Returns the hash code of this instance.
|
double |
process(double value)
Process a value.
|
double[] |
process(double[] values)
Process values.
|
float |
process(float value)
Process a value.
|
float[] |
process(float[] values)
Process values.
|
static ScaleUnpacker |
scaleUnpacker(double scale)
Returns an instance of this class corresponding to a scale factor.
|
valueUnpacker
public static ScaleUnpacker scaleUnpacker(double scale)
scale
- The numeric amount to multiply each value by
during processing.public double getIncrement()
getIncrement
in class ValueUnpacker
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 value to be processed.public float[] process(float[] values)
process
in class ValueProcessor
values
- The values 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.