Documentation of 'visad.data.in.ScaleUnpacker' Java class
ScaleUnpacker
visad.data.in

Class ScaleUnpacker



  • public final class ScaleUnpacker
    extends ValueUnpacker
    Provides support for unpacking data values by scaling them (i.e. multiplying by a constant scale factor.

    Instances are immutable.

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.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.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • scaleUnpacker

        public static ScaleUnpacker scaleUnpacker(double scale)
        Returns an instance of this class corresponding to a scale factor.
        Parameters:
        scale - The numeric amount to multiply each value by during processing.
        Returns:
        An instance of this class corresponding to the input arguments.
      • getIncrement

        public double getIncrement()
        Returns the absolute value of the scale factor.
        Overrides:
        getIncrement in class ValueUnpacker
        Returns:
        The absolute value of the scale factor.
      • process

        public float process(float value)
        Process a value.
        Specified by:
        process in class ValueProcessor
        Parameters:
        value - The value to be processed.
        Returns:
        The value with the construction offset added to it.
      • process

        public double process(double value)
        Process a value.
        Specified by:
        process in class ValueProcessor
        Parameters:
        value - The value to be processed.
        Returns:
        The value with the construction offset added to it.
      • process

        public float[] process(float[] values)
        Process values.
        Specified by:
        process in class ValueProcessor
        Parameters:
        values - The values to be processed.
        Returns:
        The values with the construction offset added to them. The same array is returned.
      • process

        public double[] process(double[] values)
        Process values.
        Specified by:
        process in class ValueProcessor
        Parameters:
        values - The values to be processed.
        Returns:
        The values with the construction offset added to them. The same array is returned.
      • equals

        public boolean equals(java.lang.Object obj)
        Indicates if this instance is semantically identical to another object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - The other object.
        Returns:
        true if and only if this instance is semantically identical to the other object.
      • hashCode

        public int hashCode()
        Returns the hash code of this instance.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        The hash code of this instance.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.