Enum CubicHermite.Tangents

    • Enum Constant Detail

      • FINITE_DIFFERENCE

        public static final CubicHermite.Tangents FINITE_DIFFERENCE
        The simplest choice is the three-point difference, not requiring constant interval lengths. The tangent at point k is defined as: \[ m_k = \frac{y_{k+1}-y_k}{2(x_{k+1}-x_{k})} + \frac{y_k-y_{k-1}}{2(x_k-x_{k-1})} \] for internal points, and one-sided difference at the endpoints.
        See Also:
        Wikipedia: Cubic Hermite spline - Finite difference
    • Method Detail

      • values

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

        public static CubicHermite.Tangents 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