derivePeaks: derivePeaks

View source: R/frequency_domain_functions.R

derivePeaksR Documentation

derivePeaks

Description

'derivePeaks' derives peaks from the mean frequency spectrum

Usage

derivePeaks(mean.spec, sampling_rate, XLIM = c(0, 5), plot = TRUE)

Arguments

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

Value

A vector indicating the frequencies at which the peaks occur


wadpac/mechanicalshakerexperiments documentation built on July 2, 2024, 11:49 p.m.