void MSfIntLin (const float x[], const float y[], int N, const float xi[], float yi[], int Ni)


Interpolate a table of values using a piecewise linear interpolant


This routine calculates interpolated values for a function defined by a table of reference data values. The interpolated values are found by passing a piecewise linear interpolant through the reference data values.


-> const float x[]
Abscissa values for the reference points. These values must be in increasing order.
-> const float y[]
Ordinate values for the reference points
-> int N
Number of reference points
-> const float xi[]
Abscissa values for the interpolated points. These values must be bounded by x[0] and x[N-1]. The values xi[i] need not be in any particular order.
<- float yi[]
Resulting interpolated ordinate values
-> int Ni
Number of interpolated values

Author / revision

P. Kabal / Revision 1.11 2003/05/09

Main Index libtsp