Click or drag to resize

RMathInterpolateLinear(Double, Double, Boolean) Method

Interpolates values of an array.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static double InterpolateLinear(
	double index,
	double[] array,
	bool extendToSides = false
)

Parameters

index  Double
The index into the array. Can be fractional.
array  Double
The array.
extendToSides  Boolean  (Optional)
If true and the value of index is out of range, the values of the array at the left side or the right side will be returned; otherwise, if the index is out of range, an exception will be thrown.

Return Value

Double
The interpolated value at the fractional index.
See Also