Click or drag to resize

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

Resamples the provided x/y columns to a uniformly spaced output starting at xstart with increment xincrement.

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,
	double xstart,
	double xincrement,
	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.
xstart  Double
Start of the output sampling grid.
xincrement  Double
Increment between output samples.
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