Click or drag to resize

LinearInterpolationInterpolate(IReadOnlyListDouble, IReadOnlyListDouble, Int32, IReadOnlyListDouble, Int32, Double, Double) Method

Resamples the provided x/y columns to the x positions provided in xnewsampling.

Namespace: Altaxo.Calc.Interpolation
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static string? Interpolate(
	IReadOnlyList<double> xcol,
	IReadOnlyList<double> ycol,
	int sourceLength,
	IReadOnlyList<double> xnewsampling,
	int numberOfValues,
	double yOutsideOfBounds,
	out double[] resultCol
)

Parameters

xcol  IReadOnlyListDouble
Source x-values.
ycol  IReadOnlyListDouble
Source y-values.
sourceLength  Int32
Number of source entries to consider.
xnewsampling  IReadOnlyListDouble
Array of output x positions.
numberOfValues  Int32
Number of output values to produce.
yOutsideOfBounds  Double
Value to write for x positions outside the interpolation range.
resultCol  Double
Output array that receives the interpolated values.

Return Value

String
Null if successful, or an error message when interpolation cannot be performed.
See Also