Learn R Programming

rsleep (version 1.0.12)

pwelch: Power spectral density using Welch's method.

Description

Power spectral density using Welch's method.

Usage

pwelch(x, sRate, points = 0, overlap = 0, padding = 0, show = TRUE)

Value

peridodogram plotted or raw

Arguments

x

Signal vector.

sRate

Sample rate of the signal.

points

todo

overlap

todo

padding

todo

show

todo

References

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.

Examples

Run this code
x <- sin(c(1:10000))
psd <- pwelch(sin(c(1:10000)), 200)
head(psd)

Run the code above in your browser using DataLab