pwelch | R Documentation |
Power spectral density using Welch's method.
pwelch(x, sRate, points = 0, overlap = 0, padding = 0, show = TRUE)
x |
Signal vector. |
sRate |
Sample rate of the signal. |
points |
todo |
overlap |
todo |
padding |
todo |
show |
todo |
peridodogram plotted or raw
Welch, P. “The Use of Fast Fourier Transform for the Estimation of Power Spectra: A Method Based on Time Averaging over Short, Modified Periodograms.” IEEE Transactions on Audio and Electroacoustics 15, no. 2 (June 1967): 70–73. https://doi.org/10.1109/TAU.1967.1161901.
x <- sin(c(1:10000))
psd <- pwelch(sin(c(1:10000)), 200)
head(psd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.