source: trunk/SRC/Documentation/idldoc_html_output/ToBeReviewed/STATISTICS/a_timecorrelate.html @ 89

Last change on this file since 89 was 89, checked in by pinsard, 18 years ago

add idldoc html output. see Documentation/idldoc_html_output/index.html

File size: 8.8 KB
Line 
1
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
5<!-- Generated by IDLdoc 2.0 -->
6
7<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
8  <head>
9    <title>a_timecorrelate.pro (IDLdoc API documentation)</title>
10
11   
12    <link rel="stylesheet" type="text/css" media="all" href="./../../main_files.css" />
13    <link rel="stylesheet" type="text/css" media="print" href="./../../main_files_print.css" />
14   
15
16    <script type="text/javascript">
17      function setTitle() {
18        parent.document.title="a_timecorrelate.pro (IDLdoc API documentation)";
19      }
20    </script>
21  </head>
22
23  <body onload="setTitle();">
24
25    <div id="navbar_title">
26  <h1>IDLdoc API documentation</h1>
27</div>
28
29
30<div id="main_navbar">
31
32  <table cellspacing="0">
33    <tr>
34     
35      <td><a href="./../../overview.html?format=raw" title="Overview of library">Overview</a></td>
36     
37
38     
39      <td >Directory</td>
40     
41
42     
43      <td><a href="./../../idldoc-categories.html?format=raw" title="Browse library by category">Categories</a></td>
44     
45
46     
47      <td><a href="./../../idldoc-index.html?format=raw" title="Index of files, routines, and parameters">Index</a></td>
48     
49
50     
51      <td><a href="./../../search-page.html?format=raw" title="Search library">Search</a></td>
52     
53
54      <td id="selected">File</td>
55
56     
57      <td >Source</td>
58     
59
60     
61      <td><a href="./../../idldoc-help.html?format=raw" title="Help on IDLdoc">Help</a></td>
62     
63
64      <td >Etc</td>
65
66      <td id="flexible">Developer&nbsp;documentation</td>
67    </tr>
68  </table>
69
70</div>
71
72<div id="secondary_navbar">
73
74<a href="a_correlate2d.html">&lt;&lt;prev file</a> | <a href="c_timecorrelate.html">next file &gt;&gt;</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="a_timecorrelate.html" target="_TOP">view single page</a> | <a href="./../../index.html?format=raw" target="_TOP">view frames</a>&nbsp;&nbsp;&nbsp;&nbsp;summary: fields | <a href="#routine_summary">routine</a>&nbsp;&nbsp;&nbsp;&nbsp;details: <a href="#routine_details">routine</a>
75
76</div>
77
78
79    <div id="container">
80
81      <h1 class="directory"><a href="directory-overview.html?format=raw">ToBeReviewed/STATISTICS/</a></h1>
82      <h2 class="pro_file">a_timecorrelate.pro</h2>
83
84      <div id="file_attr">
85        <dl>
86        </dl>
87      </div>
88
89      <div id="file_comments"></div>
90
91     
92
93     
94
95     
96
97     
98      <div id="routine_summary">               
99        <h2>Routine summary</h2>
100       
101        <dl>
102         
103          <dt><p><a href="#_TimeAuto_Cov"><span class="result">result = </span>TimeAuto_Cov(<span class="result">X, M, nT</span>, Double=<span class="result">Double</span>, zero2nan=<span class="result">zero2nan</span>)</a></p><dt>
104          <dd>  NAME:        A_TIMECORRELATE   PURPOSE:        Same function as A_CORRELATE but accept array (until 4        dimension) for input and do the autocorrelation or the        autocovariance along the time dimension which must be the last        one of the input array.</dd>   
105         
106          <dt><p><a href="#_A_TimeCorrelate"><span class="result">result = </span>A_TimeCorrelate(<span class="result">X, Lag</span>, COVARIANCE=<span class="result">COVARIANCE</span>, DOUBLE=<span class="result">DOUBLE</span>)</a></p><dt>
107          <dd></dd>     
108               
109        </dl>
110      </div>
111     
112
113      <div id="routine_details">
114       
115
116        <div class="routine_details" id="_TimeAuto_Cov">
117
118          <h2><a class="top" href="#container">top</a>TimeAuto_Cov </h2>
119       
120          <p class="header">
121            <span class="result">result = </span>TimeAuto_Cov(<span class="result"><a href="#_TimeAuto_Cov_param_X">X</a>, <a href="#_TimeAuto_Cov_param_M">M</a>, <a href="#_TimeAuto_Cov_param_nT">nT</a></span>, <a href="#_TimeAuto_Cov_keyword_Double">Double</a>=<span class="result">Double</span>, <a href="#_TimeAuto_Cov_keyword_zero2nan">zero2nan</a>=<span class="result">zero2nan</span>)</p>
122       
123          <div class="comments">
124 NAME:
125       A_TIMECORRELATE
126
127 PURPOSE:
128       Same function as A_CORRELATE but accept array (until 4
129       dimension) for input and do the autocorrelation or the
130       autocovariance along the time dimension which must be the last
131       one of the input array.
132
133       This function computes the autocorrelation Px(L) or autocovariance
134       Rx(L) of a sample population X as a function of the lag (L).
135
136 CATEGORY:
137       Statistics.
138
139 CALLING SEQUENCE:
140       Result = a_timecorrelate(X, Lag)
141
142 INPUTS:
143       X:    an Array which last dimension is the time dimension os
144       size n.
145
146     LAG:    A scalar or n-element vector, in the interval [-(n-2), (n-2)],
147             of type integer that specifies the absolute distance(s) between
148             indexed elements of X.
149
150 KEYWORD PARAMETERS:
151       COVARIANCE:    If set to a non-zero value, the sample autocovariance
152                      is computed.
153
154       DOUBLE:        If set to a non-zero value, computations are done in
155                      double precision arithmetic.
156
157 EXAMPLE
158       Define an n-element sample population.
159         x = [3.73, 3.67, 3.77, 3.83, 4.67, 5.87, 6.70, 6.97, 6.40, 5.57]
160
161       Compute the autocorrelation of X for LAG = -3, 0, 1, 3, 4, 8
162         lag = [-3, 0, 1, 3, 4, 8]
163         result = a_correlate(x, lag)
164
165       The result should be:
166         [0.0146185, 1.00000, 0.810879, 0.0146185, -0.325279, -0.151684]
167
168 PROCEDURE:
169
170
171                         n-L-1
172                         sigma  (X[k]-Xmean)(X[k+L]-Xmean)
173                          k=0
174   correlation(X,L)=----------------------------------------
175                            n-1                   
176                           sigma  (X[k]-Xmean)^2
177                            k=0                   
178
179
180
181                        n-L-1
182                        sigma  (X[k]-Xmean)(X[k+L]-Xmean)
183                         k=0
184   covariance(X,L)=-------------------------------------------
185                                     n
186
187   Where Xmean is the Time mean of the sample population
188   x=(x[t=0],x[t=1],...,x[t=n-1])
189
190
191 REFERENCE:
192       INTRODUCTION TO STATISTICAL TIME SERIES
193       Wayne A. Fuller
194       ISBN 0-471-28715-6
195
196 MODIFICATION HISTORY:</div>
197
198         
199
200         
201            <h3>Parameters</h3>
202       
203           
204            <h4 id="_TimeAuto_Cov_param_X">X&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
205             
206             
207             
208             
209             
210             
211             
212             
213            </h4>
214       
215          <div class="comments"></div>
216           
217            <h4 id="_TimeAuto_Cov_param_M">M&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
218             
219             
220             
221             
222             
223             
224             
225             
226            </h4>
227       
228          <div class="comments"></div>
229           
230            <h4 id="_TimeAuto_Cov_param_nT">nT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
231             
232             
233             
234             
235             
236             
237             
238             
239            </h4>
240       
241          <div class="comments"></div>
242           
243
244         
245
246         
247
248            <h3>Keywords</h3>
249           
250            <h4 id="_TimeAuto_Cov_keyword_Double">Double&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
251             
252             
253             
254             
255             
256             
257             
258             
259            </h4>
260       
261            <div class="comments"></div>
262           
263            <h4 id="_TimeAuto_Cov_keyword_zero2nan">zero2nan&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
264             
265             
266             
267             
268             
269             
270             
271             
272            </h4>
273       
274            <div class="comments"></div>
275           
276         
277
278         
279         
280         
281         
282         
283         
284         
285         
286         
287         
288         
289         
290       
291         
292         
293         
294         
295         
296         
297         
298       
299         
300       
301        </div>
302       
303
304        <div class="routine_details" id="_A_TimeCorrelate">
305
306          <h2><a class="top" href="#container">top</a>A_TimeCorrelate </h2>
307       
308          <p class="header">
309            <span class="result">result = </span>A_TimeCorrelate(<span class="result"><a href="#_A_TimeCorrelate_param_X">X</a>, <a href="#_A_TimeCorrelate_param_Lag">Lag</a></span>, <a href="#_A_TimeCorrelate_keyword_COVARIANCE">COVARIANCE</a>=<span class="result">COVARIANCE</span>, <a href="#_A_TimeCorrelate_keyword_DOUBLE">DOUBLE</a>=<span class="result">DOUBLE</span>)</p>
310       
311          <div class="comments"></div>
312
313         
314
315         
316            <h3>Parameters</h3>
317       
318           
319            <h4 id="_A_TimeCorrelate_param_X">X&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
320             
321             
322             
323             
324             
325             
326             
327             
328            </h4>
329       
330          <div class="comments"></div>
331           
332            <h4 id="_A_TimeCorrelate_param_Lag">Lag&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
333             
334             
335             
336             
337             
338             
339             
340             
341            </h4>
342       
343          <div class="comments"></div>
344           
345
346         
347
348         
349
350            <h3>Keywords</h3>
351           
352            <h4 id="_A_TimeCorrelate_keyword_COVARIANCE">COVARIANCE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
353             
354             
355             
356             
357             
358             
359             
360             
361            </h4>
362       
363            <div class="comments"></div>
364           
365            <h4 id="_A_TimeCorrelate_keyword_DOUBLE">DOUBLE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
366             
367             
368             
369             
370             
371             
372             
373             
374            </h4>
375       
376            <div class="comments"></div>
377           
378         
379
380         
381         
382         
383         
384         
385         
386         
387         
388         
389         
390         
391         
392       
393         
394         
395         
396         
397         
398         
399         
400       
401         
402       
403        </div>
404       
405      </div>
406
407     
408
409      <div id="tagline">Produced by IDLdoc 2.0.</div>
410
411    </div>
412
413  </body>
414</html>
Note: See TracBrowser for help on using the repository browser.