VPInterpolation interp1 Method (IList Single , IList Single , Single)Virtual Photonics - VTS Library
Virtual Photonics
Interpolation in one dimension (assumes x are monotonically increasing)

Namespace: Vts.Common.Math
Assembly: Vts (in Vts.dll) Version: 1.0.12.0 (1.0.12)
Syntax

public static float interp1(
	IList<float> x,
	IList<float> y,
	float xi
)

Parameters

x
Type: OnlineSystem.Collections.Generic IList OnlineSingle 
The known dependent values
y
Type: OnlineSystem.Collections.Generic IList OnlineSingle 
The known independent values
xi
Type: OnlineSystem Single
Value to at which to interpolate

Return Value

Type: OnlineSingle
If xi outside range of x, returns NaN, otherwide, returns linearly interpolated result
See Also