Click or drag to resize

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.1.418.0 (24.1.418.0)
Syntax
public static double Interpolate(
	double x,
	double x0,
	double y0,
	double x1,
	double y1
)

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
ExceptionCondition
InvalidOperationException Thrown when x1 equals x0.
Remarks
This interpolation algorithm only returns the interpolated value and does not return derivative information.
See Also