Enum Class FiniteDifferenceMethod

java.lang.Object
java.lang.Enum<FiniteDifferenceMethod>
de.labathome.trustconstr.enums.FiniteDifferenceMethod
All Implemented Interfaces:
Serializable, Comparable<FiniteDifferenceMethod>, Constable

public enum FiniteDifferenceMethod extends Enum<FiniteDifferenceMethod>
  • Enum Constant Details

    • TWO_POINT

      public static final FiniteDifferenceMethod TWO_POINT
      Forward difference (scipy '2-point').
    • ONE_SIDED

      public static final FiniteDifferenceMethod ONE_SIDED
      One-sided perturbation (forward or backward, picked per dimension).
    • THREE_POINT

      public static final FiniteDifferenceMethod THREE_POINT
      Central difference (scipy '3-point').
    • TWO_SIDED

      public static final FiniteDifferenceMethod TWO_SIDED
      Two-sided central perturbation.
    • COMPLEX_STEP

      public static final FiniteDifferenceMethod COMPLEX_STEP
      Complex-step differentiation (scipy 'cs'). Not yet implemented.
  • Method Details

    • values

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

      public static FiniteDifferenceMethod valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null