| NaturalCubicSplineLinearInterpolation Method |
Handles the case when there are exactly two tabulated points.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax protected override double LinearInterpolation(
double x
)
Protected Overrides Function LinearInterpolation (
x As Double
) As Double
protected:
virtual double LinearInterpolation(
double x
) override
abstract LinearInterpolation :
x : float -> float
override LinearInterpolation :
x : float -> float
Parameters
- x Double
- Point to interpolate.
Return Value
DoubleInterpolated value.
Remarks If the point to interpolate falls between the two tabulated
values, linear interpolation is used. If the point to interpolate falls
outside this range the value of the left endpoint is returned, in the case
that x is less than the left tabulated point and the value at the
right endpoint is returned in the case that x is greater than the
right tabulated point.
See Also