| Modifier and Type | Field and Description |
|---|---|
| private final double | absoluteAccuracy
Maximum absolute error. |
| private IntegerSequence. | count
The iteration count. |
| public static final double | DEFAULT_ABSOLUTE_ACCURACY
Default absolute accuracy. |
| public static final int | DEFAULT_MAX_ITERATIONS_COUNT
Default maximal iteration count. |
| public static final int | DEFAULT_MIN_ITERATIONS_COUNT
Default minimal iteration count. |
| public static final double | DEFAULT_RELATIVE_ACCURACY
Default relative accuracy. |
| private IntegerSequence. | evaluations
The functions evaluation count. |
| private UnivariateFunction | function
Function to integrate. |
| protected Incrementor | iterations
Deprecated
as of 3.6, this field has been replaced with The iteration count.
incrementCount()
|
| private double | max
Upper bound for the interval. |
| private double | min
Lower bound for the interval. |
| private final int | minimalIterationCount
minimum number of iterations |
| private final double | relativeAccuracy
Maximum relative error. |
| Access | Constructor and Description |
|---|---|
| protected | BaseAbstractUnivariateIntegrator(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 maximalIterationCount)Construct an integrator with given accuracies and iteration counts. |
| protected | BaseAbstractUnivariateIntegrator(final double
relative accuracy of the result relativeAccuracy, final double absolute accuracy of the result absoluteAccuracy)Construct an integrator with given accuracies. |
| protected | BaseAbstractUnivariateIntegrator(final int
minimum number of iterations minimalIterationCount, final int maximum number of iterations maximalIterationCount)Construct an integrator with given iteration counts. |
| Modifier and Type | Method and Description |
|---|---|
| protected double | Returns: the objective function value at specified point.Point at which the objective function must be evaluated. point)Compute the objective function value. |
| protected abstract double | Returns: the root.Method for implementing actual integration algorithms in derived classes. |
| public double | getAbsoluteAccuracy()
Implements org. Get the absolute accuracy. |
| public int | getEvaluations()
Implements org. Get the number of function evaluations of the last run of the integrator. |
| public int | getIterations()
Implements org. Get the number of iterations of the last run of the integrator. |
| protected double | |
| public int | getMaximalIterationCount()
Implements org. Get the upper limit for the number of iterations. |
| protected double | |
| public int | getMinimalIterationCount()
Implements org. Get the min limit for the number of iterations. |
| public double | getRelativeAccuracy()
Implements org. Get the relative accuracy. |
| protected void | |
| public double | integrate(final int
Maximum number of evaluations. maxEval, final UnivariateFunction the integrand function f, final double the lower bound for the interval lower, final double the upper bound for the interval upper)Implements org. Integrate the function in the given interval. |
| protected void | setup(final int
Maximum number of evaluations. maxEval, final UnivariateFunction the integrand function f, final double the min bound for the interval lower, final double the upper bound for the interval upper)Prepare for computation. |
| absoluteAccuracy | back to summary |
|---|---|
| private final double absoluteAccuracy Maximum absolute error. | |
| count | back to summary |
|---|---|
| private IntegerSequence. The iteration count. | |
| DEFAULT_ABSOLUTE_ACCURACY | back to summary |
|---|---|
| public static final double DEFAULT_ABSOLUTE_ACCURACY Default absolute accuracy. | |
| DEFAULT_MAX_ITERATIONS_COUNT | back to summary |
|---|---|
| public static final int DEFAULT_MAX_ITERATIONS_COUNT Default maximal iteration count. | |
| DEFAULT_MIN_ITERATIONS_COUNT | back to summary |
|---|---|
| public static final int DEFAULT_MIN_ITERATIONS_COUNT Default minimal iteration count. | |
| DEFAULT_RELATIVE_ACCURACY | back to summary |
|---|---|
| public static final double DEFAULT_RELATIVE_ACCURACY Default relative accuracy. | |
| evaluations | back to summary |
|---|---|
| private IntegerSequence. The functions evaluation count. | |
| function | back to summary |
|---|---|
| private UnivariateFunction function Function to integrate. | |
| iterations | back to summary |
|---|---|
| protected Incrementor iterations
Deprecated as of 3.6, this field has been replaced with The iteration count. | |
| max | back to summary |
|---|---|
| private double max Upper bound for the interval. | |
| min | back to summary |
|---|---|
| private double min Lower bound for the interval. | |
| minimalIterationCount | back to summary |
|---|---|
| private final int minimalIterationCount minimum number of iterations | |
| relativeAccuracy | back to summary |
|---|---|
| private final double relativeAccuracy Maximum relative error. | |
| BaseAbstractUnivariateIntegrator | back to summary |
|---|---|
| protected BaseAbstractUnivariateIntegrator(final double relativeAccuracy, final double absoluteAccuracy, final int minimalIterationCount, final int maximalIterationCount) throws NotStrictlyPositiveException, NumberIsTooSmallException Construct an integrator with given accuracies and iteration counts. The meanings of the various parameters are:
| |
| BaseAbstractUnivariateIntegrator | back to summary |
|---|---|
| protected BaseAbstractUnivariateIntegrator(final double relativeAccuracy, final double absoluteAccuracy) Construct an integrator with given accuracies.
| |
| BaseAbstractUnivariateIntegrator | back to summary |
|---|---|
| protected BaseAbstractUnivariateIntegrator(final int minimalIterationCount, final int maximalIterationCount) throws NotStrictlyPositiveException, NumberIsTooSmallException Construct an integrator with given iteration counts.
| |
| computeObjectiveValue | back to summary |
|---|---|
| protected double computeObjectiveValue(final double point) throws TooManyEvaluationsException Compute the objective function value.
| |
| doIntegrate | back to summary |
|---|---|
| protected abstract double doIntegrate() throws TooManyEvaluationsException, MaxCountExceededException Method for implementing actual integration algorithms in derived classes.
| |
| getAbsoluteAccuracy | back to summary |
|---|---|
| public double getAbsoluteAccuracy() Implements org. Doc from org. Get the absolute accuracy.
| |
| getEvaluations | back to summary |
|---|---|
| public int getEvaluations() Implements org. Doc from org. Get the number of function evaluations of the last run of the integrator.
| |
| getIterations | back to summary |
|---|---|
| public int getIterations() Implements org. Doc from org. Get the number of iterations of the last run of the integrator.
| |
| getMax | back to summary |
|---|---|
protected double getMax()
| |
| getMaximalIterationCount | back to summary |
|---|---|
| public int getMaximalIterationCount() Implements org. Doc from org. Get the upper limit for the number of iterations.
| |
| getMin | back to summary |
|---|---|
protected double getMin()
| |
| getMinimalIterationCount | back to summary |
|---|---|
| public int getMinimalIterationCount() Implements org. Doc from org. Get the min limit for the number of iterations.
| |
| getRelativeAccuracy | back to summary |
|---|---|
| public double getRelativeAccuracy() Implements org. Doc from org. Get the relative accuracy.
| |
| incrementCount | back to summary |
|---|---|
| protected void incrementCount() throws MaxCountExceededException Increment the number of iterations.
| |
| integrate | back to summary |
|---|---|
| public double integrate(final int maxEval, final UnivariateFunction f, final double lower, final double upper) throws TooManyEvaluationsException, MaxCountExceededException, MathIllegalArgumentException, NullArgumentException Implements org. Doc from org. Integrate the function in the given interval.
| |
| setup | back to summary |
|---|---|
| protected void setup(final int maxEval, final UnivariateFunction f, final double lower, final double upper) throws NullArgumentException, MathIllegalArgumentException Prepare for computation.
Subclasses must call this method if they override any of the
| |