lombscargle: Lomb-Scargle Periodogram estimation

Description Usage Arguments Value See Also

Description

This code is adapted from the function lomb.m from http://www.mit.edu/~gari/CODE/HRV/CliffordHRVtools.zip.

Usage

1
2
lombscargle(x, t, f = NULL, smooth = FALSE, smooth.kernel = "daniell",
  smooth.degree = 5, normalization = "none", ofac = 4, hifac = 1)

Arguments

x

A vector with the events to be enalysed.

t

A vector with the time instants of the events.

f

A vector of frequencies at which the spectrum should be estimated.

smooth

Should the spectrum be smoothed. Default is FALSE.

smooth.kernel

The smoothing kernel. The default is to use a 'daniell' kernel.

smooth.degree

The degree of smoothing. Default is 5.

normalization

How to normalize the spectrum. Possible values are 'none' (default) and 'variance'. If 'none' the area of the power spectrum equals the variance of the signal. For 'variance', the area of the power spectrum is normalized by dividing by two times the variance of the signal.

ofac

Oversampling factor. Default is 4.

hifac

The spectrum is calculated for frequencies up to hifac * average sampling frequency. Default is 1.

Value

A list with the following components.

f

The frequencies at which the spectrum was estimated.

Px

The power at the frequencies in f.

Prob

The probability of the power in a particular frequency band

See Also

http://www.ltrr.arizona.edu/~dmeko/notes_6.pdf https://onlinecourses.science.psu.edu/stat510/?q=book/export/html/57 http://reference.wolfram.com/applications/timeseries/UsersGuideToTimeSeries/SpectralAnalysis/1.8.4.html

Other HRV frequency-domain: analyse_frequencydomain_helper, analyse_frequencydomain, ibi_band_custom, ibi_band_standard


bwrc/colibri documentation built on May 13, 2019, 9:10 a.m.