View source: R/frequency_domain_functions.R
derivePeaks | R Documentation |
'derivePeaks' derives peaks from the mean frequency spectrum
derivePeaks(mean.spec, sampling_rate, XLIM = c(0, 5), plot = TRUE)
mean.spec |
A list containing estimates of the spectral density (y) at corresponding frequencies (x) |
sampling_rate |
An integer indicating whether peaks are derived for the low or high sampling rate experiment, one of c(25, 100) |
XLIM |
Vector that limits the frequency content, default is c(0, 5) to limit the frequency content to 5 Hz (as 250 rpm / 60 = 4.1667 Hz is the expected max) |
plot |
Boolean, default is TRUE the derived peaks will be plotted over the mean frequency spectrum |
A vector indicating the frequencies at which the peaks occur
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.