The function should be integrable.
| Modifier and Type | Field and Description |
|---|---|
| private double | s
Intermediate result. |
| public static final int | TRAPEZOID_MAX_ITERATIONS_COUNT
Maximum number of iterations for trapezoid. |
| Access | Constructor and Description |
|---|---|
| public | TrapezoidIntegrator(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)TRAPEZOID_MAX_ITERATIONS_COUNTBuild a trapezoid integrator with given accuracies and iterations counts. |
| public | TrapezoidIntegrator(final int
minimum number of iterations minimalIterationCount, final int maximum number of iterations
(must be less than or equal to maximalIterationCount)TRAPEZOID_MAX_ITERATIONS_COUNTBuild a trapezoid 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. |
| pack-priv double | Returns: the value of n-th stage integralintegrator holding integration parameters baseIntegrator, final int the stage of 1/2 refinement, n = 0 is no refinement n)Compute the n-th stage integral of trapezoid rule. |
| s | back to summary |
|---|---|
| private double s Intermediate result. | |
| TRAPEZOID_MAX_ITERATIONS_COUNT | back to summary |
|---|---|
| public static final int TRAPEZOID_MAX_ITERATIONS_COUNT Maximum number of iterations for trapezoid. | |
| TrapezoidIntegrator | back to summary |
|---|---|
| public TrapezoidIntegrator(final double relativeAccuracy, final double absoluteAccuracy, final int minimalIterationCount, final int maximalIterationCount) throws NotStrictlyPositiveException, NumberIsTooSmallException, NumberIsTooLargeException Build a trapezoid integrator with given accuracies and iterations counts.
| |
| TrapezoidIntegrator | back to summary |
|---|---|
| public TrapezoidIntegrator(final int minimalIterationCount, final int maximalIterationCount) throws NotStrictlyPositiveException, NumberIsTooSmallException, NumberIsTooLargeException Build a trapezoid integrator with given iteration counts.
| |
| TrapezoidIntegrator | back to summary |
|---|---|
| public TrapezoidIntegrator() Construct a trapezoid 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 |
|---|---|
| pack-priv double stage(final BaseAbstractUnivariateIntegrator baseIntegrator, final int n) throws TooManyEvaluationsException Compute the n-th stage integral of trapezoid 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.
| |