Click or drag to resize

RombergIntegratorIntegrate(DoubleVector, DoubleVector, Double, Double) Method

Estimates the integral of a linearly interpolated function between the points.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public double Integrate(
	DoubleVector xValues,
	DoubleVector yValues,
	double a,
	double b
)

Parameters

xValues  DoubleVector
X values.
yValues  DoubleVector
Y values.
a  Double
The lower limit of integration.
b  Double
The upper limit of integration.

Return Value

Double
A Romberg estimate of the integral over the interval.
Remarks
This mimics the behavior of trapz in MATLAB.
See Also