VPInterpolation interp1 Method (IList Double ,  Double , IEnumerable Double , Int32, Int32)Virtual Photonics - VTS Library
Virtual Photonics
Interpolation in one dimension within a 2-dimensional array of values

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

public static IEnumerable<double> interp1(
	IList<double> x,
	double[,] y,
	IEnumerable<double> xs,
	int fixedDimension,
	int fixedIndex
)

Parameters

x
Type: OnlineSystem.Collections.Generic IList OnlineDouble 
The known independent value
y
Type:  OnlineSystem Double 
The known dependent value
xs
Type: OnlineSystem.Collections.Generic IEnumerable OnlineDouble 
Value to at which to interpolate
fixedDimension
Type: OnlineSystem Int32
The dimension of y in which to interpolate
fixedIndex
Type: OnlineSystem Int32
The index within the dimension of y in which to interpolate

Return Value

Type: OnlineIEnumerable OnlineDouble 
If xs outside range of x, returns NaN, otherwide, returns linearly interpolated result as an IEnumerable of type double
See Also