demodulate: demodulate

Description Usage Arguments Details Value References See Also Examples

Description

Function to apply complex demodulation, a mathematical time series analysis method, to seasonal infectious disease data.

Usage

1
demodulate(x, p)

Arguments

x

Data. It needs to be in vector format.

p

Dominant periodicity of the data.

Details

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.

Value

Returns a list of three objects: the input data, the amplitude, and the phase.

References

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.

See Also

synthdata

Examples

1
2
x <- synthdata(seq(1,120), 12, 0.2, 0.2)
demodulate(x, 12)

abhogan/complexdemod documentation built on May 18, 2019, 12:24 a.m.