Enum CubicSpline.Mode

java.lang.Object
java.lang.Enum<CubicSpline.Mode>
org.bzdev.math.CubicSpline.Mode
All Implemented Interfaces:
Serializable, Comparable<CubicSpline.Mode>
Enclosing class:
CubicSpline

public static enum CubicSpline.Mode extends Enum<CubicSpline.Mode>
The mode for creating a spline. This affects the starting and ending segments of the spline. The names of the modes are based on the citation given in the documentation for CubicSpline.
  • Enum Constant Details

    • NATURAL

      public static final CubicSpline.Mode NATURAL
      The second derivatives vanish for the initial and final points of the spline.
    • QUAD_FIT

      public static final CubicSpline.Mode QUAD_FIT
      The spline will actually be a quadratic. Valid only when exactly 3 points are used to create the spline.
    • PARABOLIC_RUNOUT

      public static final CubicSpline.Mode PARABOLIC_RUNOUT
      The second derivatives are equal to each other at the first two knots of the spline. The second derivatives are also equal at the last two knots of the spline.
    • PARABOLIC_RUNOUT_START

      public static final CubicSpline.Mode PARABOLIC_RUNOUT_START
      The second derivatives are equal at the first two knots of the spline.
    • PARABOLIC_RUNOUT_END

      public static final CubicSpline.Mode PARABOLIC_RUNOUT_END
      The second derivatives are equal at the last two knots of the spline.
    • CUBIC_RUNOUT

      public static final CubicSpline.Mode CUBIC_RUNOUT
      The first two segments of the spline match a single cubic polynomial. Similarly, the last two segments of the spline match a single cubic polynomial.
    • CUBIC_RUNOUT_START

      public static final CubicSpline.Mode CUBIC_RUNOUT_START
      The first two segments of the spline match a single cubic polynomial.
    • CUBIC_RUNOUT_END

      public static final CubicSpline.Mode CUBIC_RUNOUT_END
      The last two segments of the spline match a single cubic polynomial.
    • CUBIC_START_PARABOLIC_END

      public static final CubicSpline.Mode CUBIC_START_PARABOLIC_END
      The first two segments of the spline match a single cubic polynomial. The second derivatives are equal to each other at the last two knots of the spline.
    • PARABOLIC_START_CUBIC_END

      public static final CubicSpline.Mode PARABOLIC_START_CUBIC_END
      The second derivatives are equal to each other at the first two knots of the spline. The last two segments of the spline match a single cubic polynomial.
    • CLAMPED

      public static final CubicSpline.Mode CLAMPED
      The derivatives have specified values at the start and the end of the spline.
    • CLAMPED_START

      public static final CubicSpline.Mode CLAMPED_START
      The derivative has a specified value at the start of the spline.
    • CLAMPED_END

      public static final CubicSpline.Mode CLAMPED_END
      The derivative has a specified value at the end of the spline.
    • CLAMPED_START_PARABOLIC_END

      public static final CubicSpline.Mode CLAMPED_START_PARABOLIC_END
      The derivative has a specified value at the start of the spline.
    • PARABOLIC_START_CLAMPED_END

      public static final CubicSpline.Mode PARABOLIC_START_CLAMPED_END
      The derivative has a specified value at the end of the spline. The derivatives are equal to each other at the first two knots of the spline.
    • CLAMPED_START_CUBIC_END

      public static final CubicSpline.Mode CLAMPED_START_CUBIC_END
      The derivative has a specified value at the start of the spline. The last two segments of the spline match a single cubic polynomial.
    • CUBIC_START_CLAMPED_END

      public static final CubicSpline.Mode CUBIC_START_CLAMPED_END
      The first two segments of the spline match a single cubic polynomial. The derivative has a specified value at the end of the spline.
    • HERMITE

      public static final CubicSpline.Mode HERMITE
      Both the value and the derivative of a function are specified at each point used to generate a spline.
  • Method Details

    • values

      public static CubicSpline.Mode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static CubicSpline.Mode valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null