Class Quadrature
java.lang.Object
com.irurueta.numerical.integration.Quadrature
- Direct Known Subclasses:
DoubleExponentialRuleQuadrature
,MidPointQuadrature
,TrapezoidalQuadrature
Abstract base class for elementary quadrature algorithms used for function integration.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getN()
Gets current level of refinement.abstract QuadratureType
getType()
Gets type of quadrature.abstract double
next()
Returns the value of the integral at the nth stage of refinement.
-
Field Details
-
n
protected int nCurrent level of refinement.
-
-
Constructor Details
-
Quadrature
public Quadrature()
-
-
Method Details
-
getN
public int getN()Gets current level of refinement.- Returns:
- current level of refinement.
-
next
Returns the value of the integral at the nth stage of refinement.- Returns:
- the value of the integral at the nth stage of refinement.
- Throws:
EvaluationException
- Raised if something failed during the evaluation.
-
getType
Gets type of quadrature.- Returns:
- type of quadrature.
-