VPInterpolation interp1 Method (IList Single ,  Single , Single, Int32, Int32)Virtual Photonics - VTS Library
Virtual Photonics
Interpolation in one dimension (assumes x are monotonically increasing) of 2D array over either 1st or 2nd dimension with fixed index in other dimension

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,
	float[,] y,
	float xi,
	int fixedDimension,
	int fixedIndex
)

Parameters

x
Type: OnlineSystem.Collections.Generic IList OnlineSingle 
The known dependent values
y
Type:  OnlineSystem Single 
The known independent values
xi
Type: OnlineSystem Single
Value to at which to interpolate
fixedDimension
Type: OnlineSystem Int32
Dimension of 2D array to keep fixed
fixedIndex
Type: OnlineSystem Int32
Fixed index of dim

Return Value

Type: OnlineSingle
The interpolated value (clamped to boundary values if xi are of range)
See Also