|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface IterativeIntegrator
An iterative integrator computes an integral by a series of sums, which approximates the value of the integral. The sum is refined iteratively, generally, by using a finer discretization of the integrand.
To prevent infinite looping, we need to bound the number of iterations.
| Method Summary | |
|---|---|
double |
h()
Get the discretization size for the current iteration. |
int |
maxIterations()
Get the maximum number of iterations for this iterative procedure. |
double |
next(int iteration,
UnivariateRealFunction f,
double a,
double b,
double sum)
Compute a refined sum for the integral. |
| Methods inherited from interface com.numericalmethod.suanshu.analysis.integration.univariate.riemann.Integrator |
|---|
integrate, precision |
| Method Detail |
|---|
double h()
double next(int iteration,
UnivariateRealFunction f,
double a,
double b,
double sum)
iteration - the index/count for the iterations; it counts from 1f - the integranda - the lower limitb - the upper limitsum - the last sum
int maxIterations()
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||