Calculate CGM periodogram for a given time series and argument
Usage
pgram(ts, arg, options = default_pgram())
Arguments
- ts,
numeric time series of CGM data as a numeric vector
- arg,
POSIXct vector of timestamps for CGM time series
- options,
list containing relevant settings for periodogram calculation, including number of expected days in the data ("days"), maximum gap in the data allowable ("maxgap", in days), minimum data for analysis ("mindata" in days), amount of start and end data to trim ("strim" and "etrim" both in days), and odd-value spans of Daniel smoothing kernels ("spans"). This argument is required, and a set of reasonable defaults is provided by the default_pgram() function.