public class RombergIntegrator extends UnivariateRealIntegratorImpl
Romberg integration employs k successive refinements of the trapezoid rule to remove error terms less than order O(N^(-2k)). Simpson's rule is a special case of k = 2.
Constructor and Description |
---|
RombergIntegrator()
Construct an integrator.
|
RombergIntegrator(UnivariateRealFunction f)
Deprecated.
as of 2.0 the integrand function is passed as an argument
to the
integrate(UnivariateRealFunction, double, double) method. |
Modifier and Type | Method and Description |
---|---|
double |
integrate(double min,
double max)
Deprecated.
|
double |
integrate(UnivariateRealFunction f,
double min,
double max)
Integrate the function in the given interval.
|
getMinimalIterationCount, getResult, resetMinimalIterationCount, setMinimalIterationCount
getAbsoluteAccuracy, getIterationCount, getMaximalIterationCount, getRelativeAccuracy, resetAbsoluteAccuracy, resetMaximalIterationCount, resetRelativeAccuracy, setAbsoluteAccuracy, setMaximalIterationCount, setRelativeAccuracy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAbsoluteAccuracy, getIterationCount, getMaximalIterationCount, getRelativeAccuracy, resetAbsoluteAccuracy, resetMaximalIterationCount, resetRelativeAccuracy, setAbsoluteAccuracy, setMaximalIterationCount, setRelativeAccuracy
@Deprecated public RombergIntegrator(UnivariateRealFunction f)
integrate(UnivariateRealFunction, double, double)
method.f
- function to integratepublic RombergIntegrator()
@Deprecated public double integrate(double min, double max) throws MaxIterationsExceededException, FunctionEvaluationException, java.lang.IllegalArgumentException
min
- the lower bound for the intervalmax
- the upper bound for the intervalFunctionEvaluationException
- if an error occurs evaluating the
functionjava.lang.IllegalArgumentException
- if min > max or the endpoints do not
satisfy the requirements specified by the integratorMaxIterationsExceededException
public double integrate(UnivariateRealFunction f, double min, double max) throws MaxIterationsExceededException, FunctionEvaluationException, java.lang.IllegalArgumentException
f
- the integrand functionmin
- the lower bound for the intervalmax
- the upper bound for the intervalFunctionEvaluationException
- if an error occurs evaluating the functionjava.lang.IllegalArgumentException
- if min > max or the endpoints do not
satisfy the requirements specified by the integratorMaxIterationsExceededException
Copyright © 2010 - 2020 Adobe. All Rights Reserved