T - Type of the field elements.public class FieldRombergIntegrator<T extends CalculusFieldElement<T>> extends BaseAbstractFieldUnivariateIntegrator<T>
Romberg integration employs k successive refinements of the trapezoid rule to remove error terms less than order O(N^(-2k)). Simpson's rule is a special case of k = 2.
| Modifier and Type | Field and Description |
|---|---|
static int |
ROMBERG_MAX_ITERATIONS_COUNT
Maximal number of iterations for Romberg.
|
DEFAULT_ABSOLUTE_ACCURACY, DEFAULT_MAX_ITERATIONS_COUNT, DEFAULT_MIN_ITERATIONS_COUNT, DEFAULT_RELATIVE_ACCURACY, iterations| Constructor and Description |
|---|
FieldRombergIntegrator(Field<T> field)
Construct a Romberg integrator with default settings
|
FieldRombergIntegrator(Field<T> field,
double relativeAccuracy,
double absoluteAccuracy,
int minimalIterationCount,
int maximalIterationCount)
Build a Romberg integrator with given accuracies and iterations counts.
|
FieldRombergIntegrator(Field<T> field,
int minimalIterationCount,
int maximalIterationCount)
Build a Romberg integrator with given iteration counts.
|
| Modifier and Type | Method and Description |
|---|---|
protected T |
doIntegrate()
Method for implementing actual integration algorithms in derived
classes.
|
computeObjectiveValue, getAbsoluteAccuracy, getEvaluations, getField, getIterations, getMax, getMaximalIterationCount, getMin, getMinimalIterationCount, getRelativeAccuracy, integrate, setuppublic static final int ROMBERG_MAX_ITERATIONS_COUNT
public FieldRombergIntegrator(Field<T> field, double relativeAccuracy, double absoluteAccuracy, int minimalIterationCount, int maximalIterationCount) throws MathIllegalArgumentException
field - field to which function argument and value belongrelativeAccuracy - 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 ROMBERG_MAX_ITERATIONS_COUNT)MathIllegalArgumentException - if minimal number of iterations
is not strictly positiveMathIllegalArgumentException - if maximal number of iterations
is lesser than or equal to the minimal number of iterationsMathIllegalArgumentException - if maximal number of iterations
is greater than ROMBERG_MAX_ITERATIONS_COUNTpublic FieldRombergIntegrator(Field<T> field, int minimalIterationCount, int maximalIterationCount) throws MathIllegalArgumentException
field - field to which function argument and value belongminimalIterationCount - minimum number of iterationsmaximalIterationCount - maximum number of iterations
(must be less than or equal to ROMBERG_MAX_ITERATIONS_COUNT)MathIllegalArgumentException - if minimal number of iterations
is not strictly positiveMathIllegalArgumentException - if maximal number of iterations
is lesser than or equal to the minimal number of iterationsMathIllegalArgumentException - if maximal number of iterations
is greater than ROMBERG_MAX_ITERATIONS_COUNTpublic FieldRombergIntegrator(Field<T> field)
field - field to which function argument and value belong
(max iteration count set to ROMBERG_MAX_ITERATIONS_COUNT)protected T doIntegrate() throws MathIllegalStateException
doIntegrate in class BaseAbstractFieldUnivariateIntegrator<T extends CalculusFieldElement<T>>MathIllegalStateException - if the maximal number of evaluations
is exceeded.Copyright © 2016-2022 CS GROUP. All rights reserved.