topfreq: Calculate the single main frequency for a voltage time series

topfreqR Documentation

Calculate the single main frequency for a voltage time series

Description

The function topfreq calculates the single main frequency for voltage time series data using the Fast Fourier Transform.

Usage

topfreq(data, window = TRUE, filter = 0.25, pre_fft = FALSE)

Arguments

data

Either a voltage time series dataframe or a dataframe of Fourier transformed data with columns for frequency and amplitude. If the latter, change pre_fft to TRUE.

window

Default true will window the data before transforming.

filter

High pass filter indicating threshold frequency above which will be kept, and below which will be filtered out

pre_fft

TRUE/FALSE indicating whether or not the data being fed has been Fourier Transformed,

Details

The main frequency is defined as that which has the largest amplitude.

Value

The single main frequency and its amplitude is returned as a tibble object.

See Also

Other frequency related functions: mainfreqs(), plot_fbox(), plot_fft(), single_fft(), wave_topfreq()


LylChun/EPGminer documentation built on Aug. 28, 2023, 12:30 a.m.