Enum Class IntegratorType

java.lang.Object
java.lang.Enum<IntegratorType>
com.irurueta.numerical.integration.IntegratorType
All Implemented Interfaces:
Serializable, Comparable<IntegratorType>, Constable

public enum IntegratorType extends Enum<IntegratorType>
Indicates type of integrator.
  • Enum Constant Details

    • QUADRATURE

      public static final IntegratorType QUADRATURE
      Quadrature integrator. Suitable for general purpose integrations when no prior knowledge of the integrand is known or the function is not very smooth (i.e. linearly interpolated). Has slow convergence and might not converge at all if required accuracy is too stringent.
    • SIMPSON

      public static final IntegratorType SIMPSON
      Simpson integrator. Suitable when assumptions can be made about integrand smoothness. In general Simpson method will be more efficient (i.e. requires fewer function evaluations) when the function to be integrated has a finite fourth derivative (i.e. a continuous third derivative).
    • ROMBERG

      public static final IntegratorType ROMBERG
      Romberg integrator. Suitable when integrand is sufficiently smooth (e.g. analytic), and integrated over intervals that contain no singularities, and where the endpoints are also non-singular. In such circumstances, Romberg method is more efficient than Simpson's one.
  • Constructor Details

    • IntegratorType

      private IntegratorType()
  • Method Details

    • values

      public static IntegratorType[] 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 IntegratorType 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