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

Class LonArithProg



  • public final class LonArithProg
    extends ArithProg
    Provides support for determining if a sequence of values is an arithmetic progression of longitude values and, if so, the progression parameters.
    • Constructor Detail

      • LonArithProg

        public LonArithProg()
    • Method Detail

      • accumulate

        public boolean accumulate(float[] values)
                           throws VisADException
        Accumulates a set of floats. Indicates whether or not the sequence is consistent with the arithmetic progression so far.
        Overrides:
        accumulate in class ArithProg
        Parameters:
        values - The values to accumulate.
        Returns:
        False if the difference between any current and previous value normalized by the current increment differs from unity by more than the nearness threshold; otherwise, true.
        Throws:
        VisADException - ArithProg.isConsistent() was false before this method was invoked.
      • accumulate

        public boolean accumulate(double[] values)
                           throws VisADException
        Accumulates a set of doubles. Indicates whether or not the sequence is consistent with the arithmetic progression so far.
        Overrides:
        accumulate in class ArithProg
        Parameters:
        values - The values to accumulate.
        Returns:
        False if the difference between any current and previous value normalized by the current increment differs from unity by more than the nearness threshold; otherwise, true.
        Throws:
        VisADException - ArithProg.isConsistent() was false before this method was invoked.
      • main

        public static void main(java.lang.String[] args)
                         throws java.lang.Exception
        Tests this class.
        Parameters:
        args - Runtime arguments. Ignored.
        Throws:
        java.lang.Exception - Something went wrong.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.