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 UnivariateIntegrator
public double getAbsoluteAccuracy()
getAbsoluteAccuracy
in interface UnivariateIntegrator
public int getMinimalIterationCount()
getMinimalIterationCount
in interface UnivariateIntegrator
public int getMaximalIterationCount()
getMaximalIterationCount
in interface UnivariateIntegrator
public int getEvaluations()
getEvaluations
in interface UnivariateIntegrator
public int getIterations()
getIterations
in interface UnivariateIntegrator
public double integrate(int maxEval, UnivariateFunction f, double lower, double upper) throws TooManyEvaluationsException, MaxCountExceededException, MathIllegalArgumentException, NullArgumentException
integrate
in interface UnivariateIntegrator
maxEval
- 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