| ClampedCubicSplineParabolicInterpolation Method |
Handles the case when there are exactly three tabulated points.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax protected override double ParabolicInterpolation(
double x
)
Protected Overrides Function ParabolicInterpolation (
x As Double
) As Double
protected:
virtual double ParabolicInterpolation(
double x
) override
abstract ParabolicInterpolation :
x : float -> float
override ParabolicInterpolation :
x : float -> float
Parameters
- x Double
- Point to interpolate.
Return Value
DoubleInterpolated value.
Remarks A parabola is fitted through the three tabulated points and
is used to interpolate values between the left and right endpoints.
If the point to be interpolated
is less than the left endpoint the interpolated value y is
computed so that the slope through the points (x, y) and
(x0, y0) is the slope that is specifed for the left
endpoint.
If the point to be interpolated
is greater than the right endpoint the interpolated value y is
computed so that the slope through the points (x, y) and
(xn, yn) is the slope that is specifed for the right
endpoint. Here (x0, y0) and (xn, yn) denote
the left and right endpoints, respectively.
See Also