org.jquantlib.math.integrals
Class SegmentIntegral
- java.lang.Object
-
- org.jquantlib.math.integrals.Integrator
-
- org.jquantlib.math.integrals.SegmentIntegral
-
public class SegmentIntegral extends Integrator
Integral of a one-dimensional functionGiven a number of intervals, the integral of a function between and is calculated by means of the trapezoid formula where , , and with .
-
-
Constructor Summary
Constructors Constructor and Description SegmentIntegral(int intervals)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleintegrate(Ops.DoubleOp f, double a, double b)intnumberOfEvaluations()-
Methods inherited from class org.jquantlib.math.integrals.Integrator
absoluteAccuracy, absoluteError, isIntegrationSuccess, maxEvaluations, op, setAbsoluteAccuracy, setMaxEvaluations
-
-
-
-
Method Detail
-
integrate
public final double integrate(Ops.DoubleOp f, double a, double b)
-
numberOfEvaluations
public final int numberOfEvaluations()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG