PiecewiseInterpolatingCurve.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#
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

Double
The 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.

See Also