public class SimpsonIntegrator extends BaseAbstractUnivariateIntegrator
This implementation employs the basic trapezoid rule to calculate Simpson's rule.
Modifier and Type | Field and Description |
---|---|
static int |
SIMPSON_MAX_ITERATIONS_COUNT
Maximal number of iterations for Simpson.
|
DEFAULT_ABSOLUTE_ACCURACY, DEFAULT_MAX_ITERATIONS_COUNT, DEFAULT_MIN_ITERATIONS_COUNT, DEFAULT_RELATIVE_ACCURACY, iterations
Constructor and Description |
---|
SimpsonIntegrator()
Construct an integrator with default settings.
|
SimpsonIntegrator(double relativeAccuracy,
double absoluteAccuracy,
int minimalIterationCount,
int maximalIterationCount)
Build a Simpson integrator with given accuracies and iterations counts.
|
SimpsonIntegrator(int minimalIterationCount,
int maximalIterationCount)
Build a Simpson integrator with given iteration counts.
|
Modifier and Type | Method and Description |
---|---|
protected double |
doIntegrate()
Method for implementing actual integration algorithms in derived
classes.
|
computeObjectiveValue, getAbsoluteAccuracy, getEvaluations, getIterations, getMax, getMaximalIterationCount, getMin, getMinimalIterationCount, getRelativeAccuracy, integrate, setup
public static final int SIMPSON_MAX_ITERATIONS_COUNT
public SimpsonIntegrator(double relativeAccuracy, double absoluteAccuracy, int minimalIterationCount, int maximalIterationCount)
relativeAccuracy
- relative accuracy of the resultabsoluteAccuracy
- absolute accuracy of the resultminimalIterationCount
- minimum number of iterationsmaximalIterationCount
- maximum number of iterations
(must be less than or equal to SIMPSON_MAX_ITERATIONS_COUNT
)NotStrictlyPositiveException
- if minimal number of iterations
is not strictly positiveNumberIsTooSmallException
- if maximal number of iterations
is lesser than or equal to the minimal number of iterationsNumberIsTooLargeException
- if maximal number of iterations
is greater than SIMPSON_MAX_ITERATIONS_COUNT
public SimpsonIntegrator(int minimalIterationCount, int maximalIterationCount)
minimalIterationCount
- minimum number of iterationsmaximalIterationCount
- maximum number of iterations
(must be less than or equal to SIMPSON_MAX_ITERATIONS_COUNT
)NotStrictlyPositiveException
- if minimal number of iterations
is not strictly positiveNumberIsTooSmallException
- if maximal number of iterations
is lesser than or equal to the minimal number of iterationsNumberIsTooLargeException
- if maximal number of iterations
is greater than SIMPSON_MAX_ITERATIONS_COUNT
public SimpsonIntegrator()
SIMPSON_MAX_ITERATIONS_COUNT
)protected double doIntegrate()
doIntegrate
in class BaseAbstractUnivariateIntegrator
Copyright © 2021 CNES. All rights reserved.