~ubuntu-branches/ubuntu/oneiric/qwt/oneiric-proposed

« back to all changes in this revision

Viewing changes to qwt-5.0.2/doc/html/class_qwt_spline.html

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2007-10-05 15:20:41 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071005152041-qmybqh4fj9jejyo2
Tags: 5.0.2-2
* Handle nostrip build option. (Closes: #437877)
* Build libqwt5-doc package in binary-indep target. (Closes: #443110)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
 
3
<title>Qwt User&apos;s Guide: QwtSpline Class Reference</title>
 
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
 
5
<link href="tabs.css" rel="stylesheet" type="text/css">
 
6
</head><body>
 
7
<!-- Generated by Doxygen 1.4.6 -->
 
8
<div class="tabs">
 
9
  <ul>
 
10
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
 
11
    <li id="current"><a href="classes.html"><span>Classes</span></a></li>
 
12
    <li><a href="files.html"><span>Files</span></a></li>
 
13
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
 
14
  </ul></div>
 
15
<div class="tabs">
 
16
  <ul>
 
17
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
 
18
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
 
19
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
 
20
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
 
21
  </ul></div>
 
22
<h1>QwtSpline Class Reference</h1><!-- doxytag: class="QwtSpline" --><a href="class_qwt_spline-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
 
23
A class for spline interpolation. 
 
24
<p>
 
25
The <a class="el" href="class_qwt_spline.html">QwtSpline</a> class is used for cubical spline interpolation. Two types of splines, natural and periodic, are supported.<p>
 
26
<dl compact><dt><b>Usage:</b></dt><dd><ol>
 
27
<li>
 
28
First call <a class="el" href="class_qwt_spline.html#6ed13410b1d5f6b33ba0e3c2b07932cf">setPoints()</a> to determine the spline coefficients for a tabulated function y(x). </li>
 
29
<li>
 
30
After the coefficients have been set up, the interpolated function value for an argument x can be determined by calling <a class="el" href="class_qwt_spline.html#1f67187eefe2959f0c902532edf64d41">QwtSpline::value()</a>. </li>
 
31
</ol>
 
32
</dd></dl>
 
33
<dl compact><dt><b>Example:</b></dt><dd><div class="fragment"><pre class="fragment"><span class="preprocessor">#include &lt;qwt_spline.h&gt;</span>
 
34
 
 
35
QPolygonF interpolate(<span class="keyword">const</span> QPolygonF&amp; <a class="code" href="class_qwt_spline.html#14694e61052933921eda629062554d22">points</a>, <span class="keywordtype">int</span> numValues)
 
36
{
 
37
    <a class="code" href="class_qwt_spline.html">QwtSpline</a> spline;
 
38
    <span class="keywordflow">if</span> ( !spline.<a class="code" href="class_qwt_spline.html#6ed13410b1d5f6b33ba0e3c2b07932cf">setPoints</a>(points) ) 
 
39
        <span class="keywordflow">return</span> points;
 
40
 
 
41
    QPolygonF interpolatedPoints(numValues);
 
42
 
 
43
    <span class="keyword">const</span> <span class="keywordtype">double</span> delta = 
 
44
        (points[numPoints - 1].x() - points[0].x()) / (points.size() - 1);
 
45
    <span class="keywordflow">for</span>(i = 0; i &lt; points.size(); i++)  / interpolate
 
46
    {
 
47
        <span class="keyword">const</span> <span class="keywordtype">double</span> x = points[0].x() + i * delta;
 
48
        interpolatedPoints[i].setX(x);
 
49
        interpolatedPoints[i].setY(spline.<a class="code" href="class_qwt_spline.html#1f67187eefe2959f0c902532edf64d41">value</a>(x));
 
50
    }
 
51
    <span class="keywordflow">return</span> interpolatedPoints;
 
52
}
 
53
</pre></div> </dd></dl>
 
54
 
 
55
<p>
 
56
 
 
57
<p>
 
58
Definition at line <a class="el" href="qwt__spline_8h-source.html#l00077">77</a> of file <a class="el" href="qwt__spline_8h-source.html">qwt_spline.h</a>.<table border="0" cellpadding="0" cellspacing="0">
 
59
<tr><td></td></tr>
 
60
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
 
61
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#2bd2bda128f82acd596348eb8d64231c">SplineType</a> { <br>
 
62
&nbsp;&nbsp;<b>Natural</b>, 
 
63
<br>
 
64
&nbsp;&nbsp;<b>Periodic</b>
 
65
<br>
 
66
 }</td></tr>
 
67
 
 
68
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
 
69
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#5d1e0ba35c637a88c66d9e4cbaf36e93">QwtSpline</a> ()</td></tr>
 
70
 
 
71
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2e42391f76d0b3091bf7754239f3ff0d"></a><!-- doxytag: member="QwtSpline::QwtSpline" ref="2e42391f76d0b3091bf7754239f3ff0d" args="(const QwtSpline &amp;)" -->
 
72
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#2e42391f76d0b3091bf7754239f3ff0d">QwtSpline</a> (const <a class="el" href="class_qwt_spline.html">QwtSpline</a> &amp;)</td></tr>
 
73
 
 
74
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#90805882826469c94fdc871f18261bb6">~QwtSpline</a> ()</td></tr>
 
75
 
 
76
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8a597c34477dd4b5298db2d445b4e596"></a><!-- doxytag: member="QwtSpline::operator=" ref="8a597c34477dd4b5298db2d445b4e596" args="(const QwtSpline &amp;)" -->
 
77
<a class="el" href="class_qwt_spline.html">QwtSpline</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#8a597c34477dd4b5298db2d445b4e596">operator=</a> (const <a class="el" href="class_qwt_spline.html">QwtSpline</a> &amp;)</td></tr>
 
78
 
 
79
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="222953661f01658a16042d587196aff8"></a><!-- doxytag: member="QwtSpline::setSplineType" ref="222953661f01658a16042d587196aff8" args="(SplineType)" -->
 
80
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#222953661f01658a16042d587196aff8">setSplineType</a> (<a class="el" href="class_qwt_spline.html#2bd2bda128f82acd596348eb8d64231c">SplineType</a>)</td></tr>
 
81
 
 
82
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="36442cbb781422e5b97ae242265dd4b4"></a><!-- doxytag: member="QwtSpline::splineType" ref="36442cbb781422e5b97ae242265dd4b4" args="() const " -->
 
83
<a class="el" href="class_qwt_spline.html#2bd2bda128f82acd596348eb8d64231c">SplineType</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#36442cbb781422e5b97ae242265dd4b4">splineType</a> () const </td></tr>
 
84
 
 
85
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#6ed13410b1d5f6b33ba0e3c2b07932cf">setPoints</a> (const QPolygonF &amp;points)</td></tr>
 
86
 
 
87
<tr><td class="memItemLeft" nowrap align="right" valign="top">QPolygonF&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#14694e61052933921eda629062554d22">points</a> () const </td></tr>
 
88
 
 
89
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#fc52fd49e7f00d57a0336059fae299c0">reset</a> ()</td></tr>
 
90
 
 
91
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#8eb42cf7f0f81bb7b7b885466f8ebbbf">isValid</a> () const </td></tr>
 
92
 
 
93
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#1f67187eefe2959f0c902532edf64d41">value</a> (double x) const </td></tr>
 
94
 
 
95
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
 
96
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#1cdf09e841dd6a721eb788914273c484">buildNaturalSpline</a> (const QPolygonF &amp;)</td></tr>
 
97
 
 
98
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#8184717f8c018e69fabd1e33ac68ef19">buildPeriodicSpline</a> (const QPolygonF &amp;)</td></tr>
 
99
 
 
100
<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
 
101
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="784545391f14c014684f391c6d92fd27"></a><!-- doxytag: member="QwtSpline::d_data" ref="784545391f14c014684f391c6d92fd27" args="" -->
 
102
PrivateData *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#784545391f14c014684f391c6d92fd27">d_data</a></td></tr>
 
103
 
 
104
</table>
 
105
<hr><h2>Constructor &amp; Destructor Documentation</h2>
 
106
<a class="anchor" name="5d1e0ba35c637a88c66d9e4cbaf36e93"></a><!-- doxytag: member="QwtSpline::QwtSpline" ref="5d1e0ba35c637a88c66d9e4cbaf36e93" args="()" --><p>
 
107
<table class="mdTable" cellpadding="2" cellspacing="0">
 
108
  <tr>
 
109
    <td class="mdRow">
 
110
      <table cellpadding="0" cellspacing="0" border="0">
 
111
        <tr>
 
112
          <td class="md" nowrap valign="top">QwtSpline::QwtSpline           </td>
 
113
          <td class="md" valign="top">(&nbsp;</td>
 
114
          <td class="mdname1" valign="top" nowrap>          </td>
 
115
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
116
          <td class="md" nowrap></td>
 
117
        </tr>
 
118
      </table>
 
119
    </td>
 
120
  </tr>
 
121
</table>
 
122
<table cellspacing="5" cellpadding="0" border="0">
 
123
  <tr>
 
124
    <td>
 
125
      &nbsp;
 
126
    </td>
 
127
    <td>
 
128
 
 
129
<p>
 
130
Constructor. 
 
131
<p>
 
132
 
 
133
<p>
 
134
Definition at line <a class="el" href="qwt__spline_8cpp-source.html#l00073">73</a> of file <a class="el" href="qwt__spline_8cpp-source.html">qwt_spline.cpp</a>.
 
135
<p>
 
136
References <a class="el" href="qwt__spline_8h-source.html#l00121">d_data</a>.    </td>
 
137
  </tr>
 
138
</table>
 
139
<a class="anchor" name="90805882826469c94fdc871f18261bb6"></a><!-- doxytag: member="QwtSpline::~QwtSpline" ref="90805882826469c94fdc871f18261bb6" args="()" --><p>
 
140
<table class="mdTable" cellpadding="2" cellspacing="0">
 
141
  <tr>
 
142
    <td class="mdRow">
 
143
      <table cellpadding="0" cellspacing="0" border="0">
 
144
        <tr>
 
145
          <td class="md" nowrap valign="top">QwtSpline::~QwtSpline           </td>
 
146
          <td class="md" valign="top">(&nbsp;</td>
 
147
          <td class="mdname1" valign="top" nowrap>          </td>
 
148
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
149
          <td class="md" nowrap></td>
 
150
        </tr>
 
151
      </table>
 
152
    </td>
 
153
  </tr>
 
154
</table>
 
155
<table cellspacing="5" cellpadding="0" border="0">
 
156
  <tr>
 
157
    <td>
 
158
      &nbsp;
 
159
    </td>
 
160
    <td>
 
161
 
 
162
<p>
 
163
Destructor. 
 
164
<p>
 
165
 
 
166
<p>
 
167
Definition at line <a class="el" href="qwt__spline_8cpp-source.html#l00090">90</a> of file <a class="el" href="qwt__spline_8cpp-source.html">qwt_spline.cpp</a>.
 
168
<p>
 
169
References <a class="el" href="qwt__spline_8h-source.html#l00121">d_data</a>.    </td>
 
170
  </tr>
 
171
</table>
 
172
<hr><h2>Member Function Documentation</h2>
 
173
<a class="anchor" name="1cdf09e841dd6a721eb788914273c484"></a><!-- doxytag: member="QwtSpline::buildNaturalSpline" ref="1cdf09e841dd6a721eb788914273c484" args="(const QPolygonF &amp;)" --><p>
 
174
<table class="mdTable" cellpadding="2" cellspacing="0">
 
175
  <tr>
 
176
    <td class="mdRow">
 
177
      <table cellpadding="0" cellspacing="0" border="0">
 
178
        <tr>
 
179
          <td class="md" nowrap valign="top">bool QwtSpline::buildNaturalSpline           </td>
 
180
          <td class="md" valign="top">(&nbsp;</td>
 
181
          <td class="md" nowrap valign="top">const QPolygonF &amp;&nbsp;</td>
 
182
          <td class="mdname1" valign="top" nowrap> <em>points</em>          </td>
 
183
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
184
          <td class="md" nowrap><code> [protected]</code></td>
 
185
        </tr>
 
186
      </table>
 
187
    </td>
 
188
  </tr>
 
189
</table>
 
190
<table cellspacing="5" cellpadding="0" border="0">
 
191
  <tr>
 
192
    <td>
 
193
      &nbsp;
 
194
    </td>
 
195
    <td>
 
196
 
 
197
<p>
 
198
Determines the coefficients for a natural spline. 
 
199
<p>
 
200
<dl compact><dt><b>Returns:</b></dt><dd>true if successful </dd></dl>
 
201
 
 
202
<p>
 
203
Definition at line <a class="el" href="qwt__spline_8cpp-source.html#l00209">209</a> of file <a class="el" href="qwt__spline_8cpp-source.html">qwt_spline.cpp</a>.    </td>
 
204
  </tr>
 
205
</table>
 
206
<a class="anchor" name="8184717f8c018e69fabd1e33ac68ef19"></a><!-- doxytag: member="QwtSpline::buildPeriodicSpline" ref="8184717f8c018e69fabd1e33ac68ef19" args="(const QPolygonF &amp;)" --><p>
 
207
<table class="mdTable" cellpadding="2" cellspacing="0">
 
208
  <tr>
 
209
    <td class="mdRow">
 
210
      <table cellpadding="0" cellspacing="0" border="0">
 
211
        <tr>
 
212
          <td class="md" nowrap valign="top">bool QwtSpline::buildPeriodicSpline           </td>
 
213
          <td class="md" valign="top">(&nbsp;</td>
 
214
          <td class="md" nowrap valign="top">const QPolygonF &amp;&nbsp;</td>
 
215
          <td class="mdname1" valign="top" nowrap> <em>points</em>          </td>
 
216
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
217
          <td class="md" nowrap><code> [protected]</code></td>
 
218
        </tr>
 
219
      </table>
 
220
    </td>
 
221
  </tr>
 
222
</table>
 
223
<table cellspacing="5" cellpadding="0" border="0">
 
224
  <tr>
 
225
    <td>
 
226
      &nbsp;
 
227
    </td>
 
228
    <td>
 
229
 
 
230
<p>
 
231
Determines the coefficients for a periodic spline. 
 
232
<p>
 
233
<dl compact><dt><b>Returns:</b></dt><dd>true if successful </dd></dl>
 
234
 
 
235
<p>
 
236
Definition at line <a class="el" href="qwt__spline_8cpp-source.html#l00292">292</a> of file <a class="el" href="qwt__spline_8cpp-source.html">qwt_spline.cpp</a>.    </td>
 
237
  </tr>
 
238
</table>
 
239
<a class="anchor" name="8eb42cf7f0f81bb7b7b885466f8ebbbf"></a><!-- doxytag: member="QwtSpline::isValid" ref="8eb42cf7f0f81bb7b7b885466f8ebbbf" args="() const " --><p>
 
240
<table class="mdTable" cellpadding="2" cellspacing="0">
 
241
  <tr>
 
242
    <td class="mdRow">
 
243
      <table cellpadding="0" cellspacing="0" border="0">
 
244
        <tr>
 
245
          <td class="md" nowrap valign="top">bool QwtSpline::isValid           </td>
 
246
          <td class="md" valign="top">(&nbsp;</td>
 
247
          <td class="mdname1" valign="top" nowrap>          </td>
 
248
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
249
          <td class="md" nowrap> const</td>
 
250
        </tr>
 
251
      </table>
 
252
    </td>
 
253
  </tr>
 
254
</table>
 
255
<table cellspacing="5" cellpadding="0" border="0">
 
256
  <tr>
 
257
    <td>
 
258
      &nbsp;
 
259
    </td>
 
260
    <td>
 
261
 
 
262
<p>
 
263
True if valid. 
 
264
<p>
 
265
 
 
266
<p>
 
267
Definition at line <a class="el" href="qwt__spline_8cpp-source.html#l00181">181</a> of file <a class="el" href="qwt__spline_8cpp-source.html">qwt_spline.cpp</a>.
 
268
<p>
 
269
References <a class="el" href="qwt__spline_8h-source.html#l00121">d_data</a>.    </td>
 
270
  </tr>
 
271
</table>
 
272
<a class="anchor" name="14694e61052933921eda629062554d22"></a><!-- doxytag: member="QwtSpline::points" ref="14694e61052933921eda629062554d22" args="() const " --><p>
 
273
<table class="mdTable" cellpadding="2" cellspacing="0">
 
274
  <tr>
 
275
    <td class="mdRow">
 
276
      <table cellpadding="0" cellspacing="0" border="0">
 
277
        <tr>
 
278
          <td class="md" nowrap valign="top">QPolygonF QwtSpline::points           </td>
 
279
          <td class="md" valign="top">(&nbsp;</td>
 
280
          <td class="mdname1" valign="top" nowrap>          </td>
 
281
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
282
          <td class="md" nowrap> const</td>
 
283
        </tr>
 
284
      </table>
 
285
    </td>
 
286
  </tr>
 
287
</table>
 
288
<table cellspacing="5" cellpadding="0" border="0">
 
289
  <tr>
 
290
    <td>
 
291
      &nbsp;
 
292
    </td>
 
293
    <td>
 
294
 
 
295
<p>
 
296
Return points passed by setPoints 
 
297
<p>
 
298
Definition at line <a class="el" href="qwt__spline_8cpp-source.html#l00164">164</a> of file <a class="el" href="qwt__spline_8cpp-source.html">qwt_spline.cpp</a>.    </td>
 
299
  </tr>
 
300
</table>
 
301
<a class="anchor" name="fc52fd49e7f00d57a0336059fae299c0"></a><!-- doxytag: member="QwtSpline::reset" ref="fc52fd49e7f00d57a0336059fae299c0" args="()" --><p>
 
302
<table class="mdTable" cellpadding="2" cellspacing="0">
 
303
  <tr>
 
304
    <td class="mdRow">
 
305
      <table cellpadding="0" cellspacing="0" border="0">
 
306
        <tr>
 
307
          <td class="md" nowrap valign="top">void QwtSpline::reset           </td>
 
308
          <td class="md" valign="top">(&nbsp;</td>
 
309
          <td class="mdname1" valign="top" nowrap>          </td>
 
310
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
311
          <td class="md" nowrap></td>
 
312
        </tr>
 
313
      </table>
 
314
    </td>
 
315
  </tr>
 
316
</table>
 
317
<table cellspacing="5" cellpadding="0" border="0">
 
318
  <tr>
 
319
    <td>
 
320
      &nbsp;
 
321
    </td>
 
322
    <td>
 
323
 
 
324
<p>
 
325
Free allocated memory and set size to 0. 
 
326
<p>
 
327
 
 
328
<p>
 
329
Definition at line <a class="el" href="qwt__spline_8cpp-source.html#l00172">172</a> of file <a class="el" href="qwt__spline_8cpp-source.html">qwt_spline.cpp</a>.
 
330
<p>
 
331
References <a class="el" href="qwt__spline_8h-source.html#l00121">d_data</a>.    </td>
 
332
  </tr>
 
333
</table>
 
334
<a class="anchor" name="6ed13410b1d5f6b33ba0e3c2b07932cf"></a><!-- doxytag: member="QwtSpline::setPoints" ref="6ed13410b1d5f6b33ba0e3c2b07932cf" args="(const QPolygonF &amp;points)" --><p>
 
335
<table class="mdTable" cellpadding="2" cellspacing="0">
 
336
  <tr>
 
337
    <td class="mdRow">
 
338
      <table cellpadding="0" cellspacing="0" border="0">
 
339
        <tr>
 
340
          <td class="md" nowrap valign="top">bool QwtSpline::setPoints           </td>
 
341
          <td class="md" valign="top">(&nbsp;</td>
 
342
          <td class="md" nowrap valign="top">const QPolygonF &amp;&nbsp;</td>
 
343
          <td class="mdname1" valign="top" nowrap> <em>points</em>          </td>
 
344
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
345
          <td class="md" nowrap></td>
 
346
        </tr>
 
347
      </table>
 
348
    </td>
 
349
  </tr>
 
350
</table>
 
351
<table cellspacing="5" cellpadding="0" border="0">
 
352
  <tr>
 
353
    <td>
 
354
      &nbsp;
 
355
    </td>
 
356
    <td>
 
357
 
 
358
<p>
 
359
Determine the function table index corresponding to a value x Calculate the spline coefficients. 
 
360
<p>
 
361
Depending on the value of <em>periodic</em>, this function will determine the coefficients for a natural or a periodic spline and store them internally.<p>
 
362
<dl compact><dt><b>Parameters:</b></dt><dd>
 
363
  <table border="0" cellspacing="2" cellpadding="0">
 
364
    <tr><td valign="top"></td><td valign="top"><em>x</em>&nbsp;</td><td></td></tr>
 
365
    <tr><td valign="top"></td><td valign="top"><em>y</em>&nbsp;</td><td>points </td></tr>
 
366
    <tr><td valign="top"></td><td valign="top"><em>size</em>&nbsp;</td><td>number of points </td></tr>
 
367
    <tr><td valign="top"></td><td valign="top"><em>periodic</em>&nbsp;</td><td>if true, calculate periodic spline </td></tr>
 
368
  </table>
 
369
</dl>
 
370
<dl compact><dt><b>Returns:</b></dt><dd>true if successful </dd></dl>
 
371
<dl compact><dt><b>Warning:</b></dt><dd>The sequence of x (but not y) values has to be strictly monotone increasing, which means <code>x[0] &lt; x[1] &lt; .... &lt; x[n-1]</code>. If this is not the case, the function will return false </dd></dl>
 
372
 
 
373
<p>
 
374
Definition at line <a class="el" href="qwt__spline_8cpp-source.html#l00126">126</a> of file <a class="el" href="qwt__spline_8cpp-source.html">qwt_spline.cpp</a>.    </td>
 
375
  </tr>
 
376
</table>
 
377
<a class="anchor" name="1f67187eefe2959f0c902532edf64d41"></a><!-- doxytag: member="QwtSpline::value" ref="1f67187eefe2959f0c902532edf64d41" args="(double x) const " --><p>
 
378
<table class="mdTable" cellpadding="2" cellspacing="0">
 
379
  <tr>
 
380
    <td class="mdRow">
 
381
      <table cellpadding="0" cellspacing="0" border="0">
 
382
        <tr>
 
383
          <td class="md" nowrap valign="top">double QwtSpline::value           </td>
 
384
          <td class="md" valign="top">(&nbsp;</td>
 
385
          <td class="md" nowrap valign="top">double&nbsp;</td>
 
386
          <td class="mdname1" valign="top" nowrap> <em>x</em>          </td>
 
387
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
388
          <td class="md" nowrap> const</td>
 
389
        </tr>
 
390
      </table>
 
391
    </td>
 
392
  </tr>
 
393
</table>
 
394
<table cellspacing="5" cellpadding="0" border="0">
 
395
  <tr>
 
396
    <td>
 
397
      &nbsp;
 
398
    </td>
 
399
    <td>
 
400
 
 
401
<p>
 
402
Calculate the interpolated function value corresponding to a given argument x. 
 
403
<p>
 
404
Definition at line <a class="el" href="qwt__spline_8cpp-source.html#l00190">190</a> of file <a class="el" href="qwt__spline_8cpp-source.html">qwt_spline.cpp</a>.
 
405
<p>
 
406
References <a class="el" href="qwt__spline_8h-source.html#l00121">d_data</a>.    </td>
 
407
  </tr>
 
408
</table>
 
409
<hr size="1"><address style="align: right;"><small>Generated on Mon Jun 11 07:42:59 2007 for Qwt User's Guide by&nbsp;
 
410
<a href="http://www.doxygen.org/index.html">
 
411
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
 
412
</body>
 
413
</html>