Package ffx.numerics.integrate
Enum Class Integrate1DNumeric.IntegrationType
java.lang.Object
java.lang.Enum<Integrate1DNumeric.IntegrationType>
ffx.numerics.integrate.Integrate1DNumeric.IntegrationType
- All Implemented Interfaces:
Serializable
,Comparable<Integrate1DNumeric.IntegrationType>
,Constable
- Enclosing class:
Integrate1DNumeric
public static enum Integrate1DNumeric.IntegrationType
extends Enum<Integrate1DNumeric.IntegrationType>
Enumeration of implemented integration methods, and the number of points required by them.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionBoole's Five Point Integration, requiring 5 points.Rectangular integration, requiring 1 point.Simpson's Three Point Integration, requiring 3 points.Trapezoidal integration, requiring 2 points. -
Method Summary
Modifier and TypeMethodDescriptionfinal int
Returns the number of points required for integration.Returns the enum constant of this class with the specified name.static Integrate1DNumeric.IntegrationType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RECTANGULAR
Rectangular integration, requiring 1 point. -
TRAPEZOIDAL
Trapezoidal integration, requiring 2 points. -
SIMPSONS
Simpson's Three Point Integration, requiring 3 points. -
BOOLE
Boole's Five Point Integration, requiring 5 points.
-
-
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
-
pointsNeeded
public final int pointsNeeded()Returns the number of points required for integration.- Returns:
- Number of points required for integration.
-