Click or drag to resize

DiscreteDataIntegratorIntegrate Method (DoubleVector, Int32, Int32, Double, Double)

Returns the approximate integral of the discrete data assuming unit sample intervals.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.3
Syntax
public double Integrate(
	DoubleVector y,
	int startIndex,
	int endIndex,
	double yStartPrime = 0,
	double yEndPrime = 0
)

Parameters

y
Type: CenterSpace.NMath.CoreDoubleVector
The equally spaced sampled values.
startIndex
Type: SystemInt32
Integration will start on this index.
endIndex
Type: SystemInt32
Integration will end on this index.
yStartPrime (Optional)
Type: SystemDouble
The first derivative estimate at the first sample. Used only by the CubicSpline method.
yEndPrime (Optional)
Type: SystemDouble
The first derivative estimate at the last sample. Used only by the CubicSpline method.

Return Value

Type: Double
Area summation under discrete data.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThe startIndex must be non-negative and less than the endIndex.
ArgumentOutOfRangeExceptionThe endIndex must less than the length of y and greater than the startIndex.
See Also