Click or drag to resize

RMathInterpolateLinear(Double, Double, Double) Method

Interpolates linearly between leftValue and rightValue, using the parameter fraction.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static double InterpolateLinear(
	double fraction,
	double leftValue,
	double rightValue
)

Parameters

fraction  Double
The fraction value.
leftValue  Double
The left value.
rightValue  Double
The right value.

Return Value

Double
(1-fraction)*leftValue + fraction*rightValue. If fraction is either 0 or 1, only the leftValue or the rightValue will be used as return value, respectively.
See Also