public class MidPointIntegrator extends BaseAbstractUnivariateIntegrator
The function should be integrable.
Modifier and Type | Field and Description |
---|---|
static int |
MIDPOINT_MAX_ITERATIONS_COUNT
Maximum number of iterations for midpoint.
|
DEFAULT_ABSOLUTE_ACCURACY, DEFAULT_MAX_ITERATIONS_COUNT, DEFAULT_MIN_ITERATIONS_COUNT, DEFAULT_RELATIVE_ACCURACY
Constructor and Description |
---|
MidPointIntegrator()
Construct a midpoint integrator with default settings.
|
MidPointIntegrator(double relativeAccuracy,
double absoluteAccuracy,
int minimalIterationCount,
int maximalIterationCount)
Build a midpoint integrator with given accuracies and iterations counts.
|
MidPointIntegrator(int minimalIterationCount,
int maximalIterationCount)
Build a midpoint integrator with given iteration counts.
|
getAbsoluteAccuracy, getEvaluations, getIterations, getMaximalIterationCount, getMinimalIterationCount, getRelativeAccuracy, integrate
public static final int MIDPOINT_MAX_ITERATIONS_COUNT
public MidPointIntegrator(double relativeAccuracy, double absoluteAccuracy, int minimalIterationCount, int maximalIterationCount) throws NotStrictlyPositiveException, NumberIsTooSmallException, NumberIsTooLargeException
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 MIDPOINT_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 MIDPOINT_MAX_ITERATIONS_COUNT
public MidPointIntegrator(int minimalIterationCount, int maximalIterationCount) throws NotStrictlyPositiveException, NumberIsTooSmallException, NumberIsTooLargeException
minimalIterationCount
- minimum number of iterationsmaximalIterationCount
- maximum number of iterations
(must be less than or equal to MIDPOINT_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 MIDPOINT_MAX_ITERATIONS_COUNT
public MidPointIntegrator()
MIDPOINT_MAX_ITERATIONS_COUNT
)Jas4pp 1.5 © Java Analysis Studio for Particle Physics