The function should be integrable.
| Modifier and Type | Field and Description |
|---|---|
| public static final int | MIDPOINT_MAX_ITERATIONS_COUNT
Maximum number of iterations for midpoint. |
| Access | Constructor and Description |
|---|---|
| public | MidPointIntegrator(final double
relative accuracy of the result relativeAccuracy, final double absolute accuracy of the result absoluteAccuracy, final int minimum number of iterations minimalIterationCount, final int maximum number of iterations
(must be less than or equal to maximalIterationCount)MIDPOINT_MAX_ITERATIONS_COUNTBuild a midpoint integrator with given accuracies and iterations counts. |
| public | MidPointIntegrator(final int
minimum number of iterations minimalIterationCount, final int maximum number of iterations
(must be less than or equal to maximalIterationCount)MIDPOINT_MAX_ITERATIONS_COUNTBuild a midpoint integrator with given iteration counts. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected double | doIntegrate()
Implements abstract org. Method for implementing actual integration algorithms in derived classes. |
| private double | Returns: the value of n-th stage integralthe stage of 1/2 refinement. Must be larger than 0. n, double Result from the previous call to the
previousStageResult, double stage method.Lower bound of the integration interval. min, double Difference between the lower bound and upper bound
of the integration interval. diffMaxMin)Compute the n-th stage integral of midpoint rule. |
| MIDPOINT_MAX_ITERATIONS_COUNT | back to summary |
|---|---|
| public static final int MIDPOINT_MAX_ITERATIONS_COUNT Maximum number of iterations for midpoint. | |
| MidPointIntegrator | back to summary |
|---|---|
| public MidPointIntegrator(final double relativeAccuracy, final double absoluteAccuracy, final int minimalIterationCount, final int maximalIterationCount) throws NotStrictlyPositiveException, NumberIsTooSmallException, NumberIsTooLargeException Build a midpoint integrator with given accuracies and iterations counts.
| |
| MidPointIntegrator | back to summary |
|---|---|
| public MidPointIntegrator(final int minimalIterationCount, final int maximalIterationCount) throws NotStrictlyPositiveException, NumberIsTooSmallException, NumberIsTooLargeException Build a midpoint integrator with given iteration counts.
| |
| MidPointIntegrator | back to summary |
|---|---|
| public MidPointIntegrator() Construct a midpoint integrator with default settings.
(max iteration count set to | |
| doIntegrate | back to summary |
|---|---|
| protected double doIntegrate() throws MathIllegalArgumentException, TooManyEvaluationsException, MaxCountExceededException Implements abstract org. Doc from org. Method for implementing actual integration algorithms in derived classes.
| |
| stage | back to summary |
|---|---|
| private double stage(final int n, double previousStageResult, double min, double diffMaxMin) throws TooManyEvaluationsException Compute the n-th stage integral of midpoint rule.
This function should only be called by API The interval is divided equally into 2^n sections rather than an arbitrary m sections because this configuration can best utilize the already computed values.
| |