- All Implemented Interfaces:
Serializable
,Comparable<CubicSpline.Mode>
- Enclosing class:
- CubicSpline
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 Summary
Enum ConstantsEnum ConstantDescriptionThe derivatives have specified values at the start and the end of the spline.The derivative has a specified value at the end of the spline.The derivative has a specified value at the start of the spline.The derivative has a specified value at the start of the spline.The derivative has a specified value at the start of the spline.The first two segments of the spline match a single cubic polynomial.The last two segments of the spline match a single cubic polynomial.The first two segments of the spline match a single cubic polynomial.The first two segments of the spline match a single cubic polynomial.The first two segments of the spline match a single cubic polynomial.Both the value and the derivative of a function are specified at each point used to generate a spline.The second derivatives vanish for the initial and final points of the spline.The second derivatives are equal to each other at the first two knots of the spline.The second derivatives are equal at the last two knots of the spline.The second derivatives are equal at the first two knots of the spline.The derivative has a specified value at the end of the spline.The second derivatives are equal to each other at the first two knots of the spline.The spline will actually be a quadratic. -
Method Summary
Modifier and TypeMethodDescriptionstatic CubicSpline.Mode
Returns the enum constant of this type with the specified name.static CubicSpline.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NATURAL
The second derivatives vanish for the initial and final points of the spline. -
QUAD_FIT
The spline will actually be a quadratic. Valid only when exactly 3 points are used to create the spline. -
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
The second derivatives are equal at the first two knots of the spline. -
PARABOLIC_RUNOUT_END
The second derivatives are equal at the last two knots of the spline. -
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
The first two segments of the spline match a single cubic polynomial. -
CUBIC_RUNOUT_END
The last two segments of the spline match a single cubic polynomial. -
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
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
The derivatives have specified values at the start and the end of the spline. -
CLAMPED_START
The derivative has a specified value at the start of the spline. -
CLAMPED_END
The derivative has a specified value at the end of the spline. -
CLAMPED_START_PARABOLIC_END
The derivative has a specified value at the start of the spline. -
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
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
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
Both the value and the derivative of a function are specified at each point used to generate a spline.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-