Cubic Spline.Integral Method
Gets the definite integral of the curve between the
specified X-coordinates.
Definition
Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
The definite integral of the curve between lowerBound and upperBound.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public override double Integral(
double lowerBound,
double upperBound
)
Parameters
- lowerBound Double
- The lower bound of the integration interval.
- upperBound Double
- The upper bound of the integration interval.
Return Value
DoubleThe definite integral of the curve between lowerBound and upperBound.
Remarks
The integral of a spline curve is computed exactly.
The most reliable way to integrate a function that is defined in terms of tabulated data is to fit a spline curve through the data points, and approximate the integral of the function by the integral of the spline.