Description Usage Arguments Value Author(s) Examples
Calculate and plot power spectrum for a wave.
1 | power.spectrum(y, samp.freq = 11025, plot = TRUE, plot_range = NULL)
|
y |
An object of class |
samp.freq |
The recording frequency. Defaults to 11025 Hz. |
plot |
logical. Should the power spectrum be plotted?
Defaults to |
plot_range |
numeric vector. The range for plotting. Defaults to 0 to samp.freq / 2. |
A data.frame
containing the intensity
at
each frequency
from 0 to samp.freq / 2
.
Kevin Middleton (middletonk@missouri.edu)
1 2 3 4 5 6 7 8 9 | pulse <- read.EMG(system.file("extdata",
"pulse_1.wav",
package = "EMG"))
power.spectrum(pulse)
no_signal <- read.EMG(system.file("extdata",
"amp_on_baseline.wav",
package = "EMG"))
power.spectrum(no_signal)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.