Click or drag to resize

DiscreteDataIntegratorIntegrate(DoubleVector, DoubleVector, Double, Double) Method

Return the approximate integral of the discrete data.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public double Integrate(
	DoubleVector x,
	DoubleVector y,
	double yStartPrime = 0,
	double yEndPrime = 0
)

Parameters

x  DoubleVector
The times or positions of the sampled signal.
y  DoubleVector
The sampled data values.
yStartPrime  Double  (Optional)
The first derivative estimate at the first sample. Used only by the CubicSpline method.
yEndPrime  Double  (Optional)
The first derivative estimate at the last sample. Used only by the CubicSpline method.

Return Value

Double
Area summation under discrete data.
Exceptions
ExceptionCondition
MismatchedSizeExceptionThe input vectors x and y must have the same length.
See Also