|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.analysis.integration.BaseAbstractUnivariateIntegrator
org.apache.commons.math3.analysis.integration.IterativeLegendreGaussIntegrator
public class IterativeLegendreGaussIntegrator
This algorithm divides the integration interval into equally-sized sub-interval and on each of them performs a Legendre-Gauss quadrature.
Field Summary | |
---|---|
private static GaussIntegratorFactory |
FACTORY
Factory that computes the points and weights. |
private int |
numberOfPoints
Number of integration points (per interval). |
Fields inherited from class org.apache.commons.math3.analysis.integration.BaseAbstractUnivariateIntegrator |
---|
DEFAULT_ABSOLUTE_ACCURACY, DEFAULT_MAX_ITERATIONS_COUNT, DEFAULT_MIN_ITERATIONS_COUNT, DEFAULT_RELATIVE_ACCURACY, iterations |
Constructor Summary | |
---|---|
IterativeLegendreGaussIntegrator(int n,
double relativeAccuracy,
double absoluteAccuracy)
Builds an integrator with given accuracies. |
|
IterativeLegendreGaussIntegrator(int n,
double relativeAccuracy,
double absoluteAccuracy,
int minimalIterationCount,
int maximalIterationCount)
Builds an integrator with given accuracies and iterations counts. |
|
IterativeLegendreGaussIntegrator(int n,
int minimalIterationCount,
int maximalIterationCount)
Builds an integrator with given iteration counts. |
Method Summary | |
---|---|
protected double |
doIntegrate()
Method for implementing actual integration algorithms in derived classes. |
private double |
stage(int n)
Compute the n-th stage integral. |
Methods inherited from class org.apache.commons.math3.analysis.integration.BaseAbstractUnivariateIntegrator |
---|
computeObjectiveValue, getAbsoluteAccuracy, getEvaluations, getIterations, getMax, getMaximalIterationCount, getMin, getMinimalIterationCount, getRelativeAccuracy, integrate, setup |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final GaussIntegratorFactory FACTORY
private final int numberOfPoints
Constructor Detail |
---|
public IterativeLegendreGaussIntegrator(int n, double relativeAccuracy, double absoluteAccuracy, int minimalIterationCount, int maximalIterationCount) throws NotStrictlyPositiveException, NumberIsTooSmallException
n
- Number of integration points.relativeAccuracy
- Relative accuracy of the result.absoluteAccuracy
- Absolute accuracy of the result.minimalIterationCount
- Minimum number of iterations.maximalIterationCount
- Maximum number of iterations.
NotStrictlyPositiveException
- if minimal number of iterations
is not strictly positive.
NumberIsTooSmallException
- if maximal number of iterations
is smaller than or equal to the minimal number of iterations.public IterativeLegendreGaussIntegrator(int n, double relativeAccuracy, double absoluteAccuracy)
n
- Number of integration points.relativeAccuracy
- Relative accuracy of the result.absoluteAccuracy
- Absolute accuracy of the result.public IterativeLegendreGaussIntegrator(int n, int minimalIterationCount, int maximalIterationCount)
n
- Number of integration points.minimalIterationCount
- Minimum number of iterations.maximalIterationCount
- Maximum number of iterations.
NotStrictlyPositiveException
- if minimal number of iterations
is not strictly positive.
NumberIsTooSmallException
- if maximal number of iterations
is smaller than or equal to the minimal number of iterations.Method Detail |
---|
protected double doIntegrate() throws TooManyEvaluationsException, MaxCountExceededException
doIntegrate
in class BaseAbstractUnivariateIntegrator
TooManyEvaluationsException
- if the maximal number of evaluations
is exceeded.
MaxCountExceededException
- if the maximum iteration count is exceeded
or the integrator detects convergence problems otherwiseprivate double stage(int n) throws TooManyEvaluationsException
n
- Number of steps.
TooManyEvaluationsException
- if the maximum number of evaluations
is exceeded.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |