Autocor: Difference between revisions
Jump to navigation
Jump to search
imported>Jeremy (Importing text file) |
imported>Jeremy (Importing text file) |
||
Line 1: | Line 1: | ||
===Purpose=== | ===Purpose=== | ||
Calculates the autocorrelation function of a time series. | Calculates the autocorrelation function of a time series. | ||
===Synopsis=== | ===Synopsis=== | ||
:acor = autocor(x,n,''period,plots'') | :acor = autocor(x,n,''period,plots'') | ||
===Description=== | ===Description=== | ||
acor = autocor(x,n) returns the autocorrelation function acor of a time series x for a maximum time shift of n sample periods. | acor = autocor(x,n) returns the autocorrelation function acor of a time series x for a maximum time shift of n sample periods. | ||
acor = autocor(x,n,''period'') uses the sampling period ''period'' to scale the x-axis on the output plot. ''period'' can be empty []. | acor = autocor(x,n,''period'') uses the sampling period ''period'' to scale the x-axis on the output plot. ''period'' can be empty []. | ||
The optional input ''plots'' suppresses plotting if set to 0. | The optional input ''plots'' suppresses plotting if set to 0. | ||
===See Also=== | ===See Also=== | ||
[[corrmap]], [[crosscor]] | [[corrmap]], [[crosscor]] |
Revision as of 15:24, 3 September 2008
Purpose
Calculates the autocorrelation function of a time series.
Synopsis
- acor = autocor(x,n,period,plots)
Description
acor = autocor(x,n) returns the autocorrelation function acor of a time series x for a maximum time shift of n sample periods.
acor = autocor(x,n,period) uses the sampling period period to scale the x-axis on the output plot. period can be empty [].
The optional input plots suppresses plotting if set to 0.