Enum BSpline.Mode

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

public static enum BSpline.Mode extends Enum<BSpline.Mode>
Modes for creating a B-spline from a set of data points. The enumeration constants determine how the ends of the spline are treated. The constructors that use these constants will compute the knots used by the spline.
  • Enum Constant Details

    • UNCLAMPED

      public static final BSpline.Mode UNCLAMPED
      Knots are to be suitable for a non-clamped B-spline.
    • CLAMPED

      public static final BSpline.Mode CLAMPED
      Knots are to be suitable for a clamped B-spline.
    • CLAMPED_LEFT

      public static final BSpline.Mode CLAMPED_LEFT
      Knots are to be suitable for a B-spline clamped on its left side (lowest value in its domain).
    • CLAMPED_RIGHT

      public static final BSpline.Mode CLAMPED_RIGHT
      Knots are to be suitable for a B-spline clamped on its right side (highest value in its domain).
    • PERIODIC

      public static final BSpline.Mode PERIODIC
      Knots are to be suitable for a periodic B-spline.
  • Method Details

    • values

      public static BSpline.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 BSpline.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