public class TrapezoidIntegrator extends UnivariateRealIntegratorImpl
The function should be integrable.
defaultMinimalIterationCount, f, minimalIterationCount, result, resultComputedabsoluteAccuracy, defaultAbsoluteAccuracy, defaultMaximalIterationCount, defaultRelativeAccuracy, iterationCount, maximalIterationCount, relativeAccuracy| Constructor and Description |
|---|
TrapezoidIntegrator()
Construct an integrator.
|
TrapezoidIntegrator(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.
|
protected void |
verifyIterationCount()
Verifies that the upper and lower limits of iterations are valid.
|
clearResult, getMinimalIterationCount, getResult, resetMinimalIterationCount, setMinimalIterationCount, setResult, verifyIntervalgetAbsoluteAccuracy, getIterationCount, getMaximalIterationCount, getRelativeAccuracy, incrementIterationsCounter, resetAbsoluteAccuracy, resetIterationsCounter, resetMaximalIterationCount, resetRelativeAccuracy, setAbsoluteAccuracy, setMaximalIterationCount, setRelativeAccuracyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAbsoluteAccuracy, getIterationCount, getMaximalIterationCount, getRelativeAccuracy, resetAbsoluteAccuracy, resetMaximalIterationCount, resetRelativeAccuracy, setAbsoluteAccuracy, setMaximalIterationCount, setRelativeAccuracy@Deprecated public TrapezoidIntegrator(UnivariateRealFunction f)
integrate(UnivariateRealFunction, double, double)method.f - function to integratepublic TrapezoidIntegrator()
@Deprecated public double integrate(double min, double max) throws MaxIterationsExceededException, FunctionEvaluationException, IllegalArgumentException
min - the lower bound for the intervalmax - the upper bound for the intervalFunctionEvaluationException - if an error occurs evaluating the
functionIllegalArgumentException - if min > max or the endpoints do not
satisfy the requirements specified by the integratorMaxIterationsExceededExceptionpublic double integrate(UnivariateRealFunction f, double min, double max) throws MaxIterationsExceededException, FunctionEvaluationException, IllegalArgumentException
f - the integrand functionmin - the lower bound for the intervalmax - the upper bound for the intervalFunctionEvaluationException - if an error occurs evaluating the functionIllegalArgumentException - if min > max or the endpoints do not
satisfy the requirements specified by the integratorMaxIterationsExceededExceptionprotected void verifyIterationCount()
throws IllegalArgumentException
verifyIterationCount in class UnivariateRealIntegratorImplIllegalArgumentException - if not validCopyright © 2003–2015. All rights reserved.