Skip to contents

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.

Value

"Periodogram" object with entries "lpgram" - vector of log-periodogram values, "freqs" - vector of frequencies (min ^-1) corresponding to those values

Details

This function calculates the CGM log-periodogram using appropriate settings for this type of data