|
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 Integrator
This is the interface for numerical integration of univariate functions. A broad family of algorithms for calculating the numerical value of a definite integral implements this interface.
| Method Summary | |
|---|---|
double |
integrate(UnivariateRealFunction f,
double a,
double b)
Integrate function f from a to b. |
double |
precision()
Get the convergence threshold. |
| Method Detail |
|---|
double integrate(UnivariateRealFunction f,
double a,
double b)
f from a to b.
/ b
| f(x) dx
/ a
f - a univariate functiona - lower limitb - upper limit
double precision()
For example, for an IterativeIntegrator,
the integral is considered converged
if the relative error of two successive sums is less than the threshold.
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||