psm: Power spectral density using adaptive sine multitaper.

View source: R/eeg.R

psmR Documentation

Power spectral density using adaptive sine multitaper.

Description

Power spectral density using adaptive sine multitaper.

Usage

psm(x, sRate, length = 0, show = TRUE)

Arguments

x

Signal vector.

sRate

Sample rate of the signal.

length

periodogram resolution. 0 default to not resize.

show

todo

Value

peridodogram plotted or raw.

References

Barbour, A. J. and R. L. Parker (2014), psd: Adaptive, sine multitaper power spectral density estimation for R, Computers & Geosciences, Volume 63, February 2014, Pages 1-8, ISSN 0098-3004, http://dx.doi.org/10.1016/j.cageo.2013.09.015

Examples

x <- sin(c(1:10000))
psd <- psm(x, 200, 100)
head(psd)

rsleep documentation built on Nov. 6, 2023, 1:06 a.m.