Description Usage Arguments Details Value References See Also Examples
Function to apply complex demodulation, a mathematical time series analysis method, to seasonal infectious disease data.
1 | demodulate(x, p)
|
x |
Data. It needs to be in vector format. |
p |
Dominant periodicity of the data. |
The method of complex demodulation is in three parts. First, the data is multiplied by a demodulating function. Second, a filter is applied (here, a centred moving average). Third, the amplitude and phase are extracted from the filtered, demodulated data. The output is a list of two objects: the amplitude, and the phase.
Returns a list of three objects: the input data, the amplitude, and the phase.
Hogan, A.B., Glass, K. and Anderssen, R.S. (2017) Complex demodulatuion: a novel #' time series method for analysing infectious diseases. The ANZIAM Journal 59(1) 51-60.
1 2 | x <- synthdata(seq(1,120), 12, 0.2, 0.2)
demodulate(x, 12)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.