|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.data.in.ValueProcessor visad.data.in.ValueUnpacker visad.data.in.ScaleAndOffsetUnpacker
public final class ScaleAndOffsetUnpacker
Provides support for unpacking data values by multiplying them by a constant scale factor and then adding a constant offset value.
Instances are immutable.
Field Summary |
---|
Fields inherited from class visad.data.in.ValueProcessor |
---|
trivialProcessor |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Indicates if this instance is semantically identical to another object. |
double |
getIncrement()
Returns the absolute value of the scale value. |
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 ScaleAndOffsetUnpacker |
scaleAndOffsetUnpacker(double scale,
double offset)
Returns an instance of this class corresponding to an offset value and scale factor. |
Methods inherited from class visad.data.in.ValueUnpacker |
---|
valueUnpacker |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ScaleAndOffsetUnpacker scaleAndOffsetUnpacker(double scale, double offset)
scale
- The numeric amount to multiply each value by
during processing.offset
- The numeric offset to be added to each value
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)
equals
in class Object
obj
- The other object.
true
if and only if this instance
is semantically identical to the other object.public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |