Piecewise Interpolating Curve.Integral Method
Gets the definite integral of the curve between the
specified X-coordinates.
Definition
Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.10.0
C#
The definite integral of the curve between lowerBound and upperBound.
IInterpolator.Integral(Double, Double)
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.10.0
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.
Implements
IInterpolator.Integral(Double, Double)IInterpolator.Integral(Double, Double)
Remarks
For periodic X-coordinates and linear Y-coordinates, finite integration bounds are evaluated analytically over the linear segments, including the closing segment. Complete periods are counted directly. Reversing the bounds reverses the sign of the integral.
Other interpolation modes use the base curve's integration method.