File: MSintLin.html

package info (click to toggle)
libtsp 3r0-1
  • links: PTS
  • area: non-free
  • in suites: potato, woody
  • size: 5,096 kB
  • ctags: 1,798
  • sloc: ansic: 14,464; sh: 1,217; makefile: 182
file content (62 lines) | stat: -rw-r--r-- 1,424 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<HTML>
<HEAD>
<TITLE>TSP (libtsp/MS) - MSintLin</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFACD">
<H2>MSintLin</H2>
<HR>
<H4>Routine</H4>
<DL>
<DT>
void MSintLin (const float x[], const float y[], int N, const float xi[],
float yi[], int Ni)
</DL>
<H4>Purpose</H4>
<DL>
<DT>
Interpolate a table of values using a piecewise linear interpolant
</DL>
<H4>Description</H4>
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.
<H4>Parameters</H4>
<DL>
<DT>
 -&gt; const float x[]
<DD>
Abscissa values for the reference points.  These values must be in
increasing order.
<DT>
 -&gt; const float y[]
<DD>
Ordinate values for the reference points
<DT>
 -&gt; int N
<DD>
Number of reference points
<DT>
 -&gt; const float xi[]
<DD>
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.
<DT>
&lt;-  float yi[]
<DD>
Resulting interpolated ordinate values
<DT>
 -&gt; int Ni
<DD>
Number of interpolated values
</DL>
<H4>Author / revision</H4>
P. Kabal  Copyright (C) 1997
/ Revision 1.7  1997/10/11
<H4>See Also</H4>
<A HREF="MSintMC.html">MSintMC</A>
<P>
<HR>
Main Index <A HREF="../libtsp.html">libtsp</A>
</BODY>
</HTML>