LinearApproximationInterpolate Method (Double, Double, Double, Double, Double) |
Interpolate method that can be called with the coordinates of the 2 points and the independent variable
to be interpolated.
Namespace:
AGI.Foundation.NumericalMethods.Advanced
Assembly:
AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax public static double Interpolate(
double x,
double x0,
double y0,
double x1,
double y1
)
Public Shared Function Interpolate (
x As Double,
x0 As Double,
y0 As Double,
x1 As Double,
y1 As Double
) As Double
public:
static double Interpolate(
double x,
double x0,
double y0,
double x1,
double y1
)
static member Interpolate :
x : float *
x0 : float *
y0 : float *
x1 : float *
y1 : float -> float
Parameters
- x
- Type: SystemDouble
The independent variable for which the dependent variable will be interpolated.
- x0
- Type: SystemDouble
The first independent variable to be used to interpolate.
- y0
- Type: SystemDouble
The first dependent variable to be used to interpolate.
- x1
- Type: SystemDouble
The second independent variable to be used to interpolate. Cannot be equal to x0.
- y1
- Type: SystemDouble
The second dependent variable to be used to interpolate.
Return Value
Type:
Double
The interpolated value corresponding to the values supplied.
Exceptions Remarks
This interpolation algorithm only returns the interpolated value and does not return derivative
information.
See Also