| RombergIntegratorIntegrate(DoubleVector, DoubleVector, Double, Double) Method |
Estimates the integral of a linearly interpolated function between the points.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public double Integrate(
DoubleVector xValues,
DoubleVector yValues,
double a,
double b
)
Public Function Integrate (
xValues As DoubleVector,
yValues As DoubleVector,
a As Double,
b As Double
) As Double
public:
double Integrate(
DoubleVector^ xValues,
DoubleVector^ yValues,
double a,
double b
)
member Integrate :
xValues : DoubleVector *
yValues : DoubleVector *
a : float *
b : float -> float
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
DoubleA Romberg estimate of the integral over the interval.
Remarks
This mimics the behavior of trapz in MATLAB.
See Also