Power spectral density using adaptive sine multitaper.

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)
#>           psd            hz
#> 1  -0.1199714 -5.214502e-21
#> 2 -17.9019852  8.924631e-01
#> 3 -16.1536567  1.895231e+00
#> 4 -15.4800850  2.897998e+00
#> 5 -15.1366176  3.900766e+00
#> 6 -14.9120863  4.903533e+00