Enum Class IntegratorType
- All Implemented Interfaces:
Serializable
,Comparable<IntegratorType>
,Constable
Indicates type of integrator.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionQuadrature integrator.Romberg integrator.Simpson integrator. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IntegratorType
Returns the enum constant of this class with the specified name.static IntegratorType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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
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 nameNullPointerException
- if the argument is null
-