edu.mines.jtk.util
Enum CubicInterpolator.Method

java.lang.Object
  extended by java.lang.Enum<CubicInterpolator.Method>
      extended by edu.mines.jtk.util.CubicInterpolator.Method
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CubicInterpolator.Method>
Enclosing class:
CubicInterpolator

public static enum CubicInterpolator.Method
extends java.lang.Enum<CubicInterpolator.Method>

The method used for piecewise cubic interpolation.

If linear, then the interpolated function is continuous, but has discontinuous 1st and higher derivatives. This method is equivalent to (though less efficient than) simple linear interpolation.

If monotonic, then the interpolation is continuous with continuous 1st derivative, but discontinuous 2nd and higher derivatives. This method preserves monotonicity. If function values specified at the knots are monotonic, then interpolated function values are also monotonic.

If spline, then the interpolation is continuous with continuous 1st and 2nd derivatives, but discontinuous 3rd and higher and discontinuous higher order derivatives.


Enum Constant Summary
LINEAR
           
MONOTONIC
           
SPLINE
           
 
Method Summary
static CubicInterpolator.Method valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CubicInterpolator.Method[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LINEAR

public static final CubicInterpolator.Method LINEAR

MONOTONIC

public static final CubicInterpolator.Method MONOTONIC

SPLINE

public static final CubicInterpolator.Method SPLINE
Method Detail

values

public static final CubicInterpolator.Method[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(CubicInterpolator.Method c : CubicInterpolator.Method.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static CubicInterpolator.Method valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name