public abstract class BaseAbstractUnivariateIntegrator extends Object implements UnivariateIntegrator
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_ABSOLUTE_ACCURACY
Default absolute accuracy.
|
static int |
DEFAULT_MAX_ITERATIONS_COUNT
Default maximal iteration count.
|
static int |
DEFAULT_MIN_ITERATIONS_COUNT
Default minimal iteration count.
|
static double |
DEFAULT_RELATIVE_ACCURACY
Default relative accuracy.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAbsoluteAccuracy()
Get the absolute accuracy.
|
int |
getEvaluations()
Get the number of function evaluations of the last run of the integrator.
|
int |
getIterations()
Get the number of iterations of the last run of the integrator.
|
int |
getMaximalIterationCount()
Get the upper limit for the number of iterations.
|
int |
getMinimalIterationCount()
Get the min limit for the number of iterations.
|
double |
getRelativeAccuracy()
Get the relative accuracy.
|
double |
integrate(int maxEval,
UnivariateFunction f,
double lower,
double upper)
Integrate the function in the given interval.
|
public static final double DEFAULT_ABSOLUTE_ACCURACY
public static final double DEFAULT_RELATIVE_ACCURACY
public static final int DEFAULT_MIN_ITERATIONS_COUNT
public static final int DEFAULT_MAX_ITERATIONS_COUNT
public double getRelativeAccuracy()
getRelativeAccuracy in interface UnivariateIntegratorpublic double getAbsoluteAccuracy()
getAbsoluteAccuracy in interface UnivariateIntegratorpublic int getMinimalIterationCount()
getMinimalIterationCount in interface UnivariateIntegratorpublic int getMaximalIterationCount()
getMaximalIterationCount in interface UnivariateIntegratorpublic int getEvaluations()
getEvaluations in interface UnivariateIntegratorpublic int getIterations()
getIterations in interface UnivariateIntegratorpublic double integrate(int maxEval,
UnivariateFunction f,
double lower,
double upper)
throws TooManyEvaluationsException,
MaxCountExceededException,
MathIllegalArgumentException,
NullArgumentException
integrate in interface UnivariateIntegratormaxEval - Maximum number of evaluations.f - the integrand functionlower - the lower bound for the intervalupper - the upper bound for the intervalTooManyEvaluationsException - if the maximum number of function
evaluations is exceededMaxCountExceededException - if the maximum iteration count is exceeded
or the integrator detects convergence problems otherwiseMathIllegalArgumentException - if min > max or the endpoints do not
satisfy the requirements specified by the integratorNullArgumentException - if f is null.Jas4pp 1.5 © Java Analysis Studio for Particle Physics