wave_volts: Calculate voltage metrics for each waveform

View source: R/wave_volts.R

wave_voltsR Documentation

Calculate voltage metrics for each waveform

Description

The function wave_volts calculates the voltage metrics for each waveform instance

Usage

wave_volts(data)

Arguments

data

A dataframe containing three columns: time, volts, waveform.

Details

Labeled data is grouped by each waveform instance and the following three voltage metrics are returned: mean, SD, and relative amplitude. The SD is the mathematical SD of volts. Mean is first corrected for by subtracting the starting voltage, then the mean (adjusted) voltage is returned. The waveform type 'pd' without any splitting into subforms is calculated separately. As a result, the pd calculations will appear all at the end of the table. The subforms, pd1 and pd2, will appear in sequence.

Relative amplitude is a percent calculated with the following formula: Relative amplitude = |(mean of waveform - mean of nonprobing)|x100/5

Value

A tibble object containing a row per waveform instance and four columns is returned: waveform, mean_volts, sd_volts, relative_amplitude.

See Also

Other waveform functions: plot_pie(), plot_wave(), wave_duration(), wave_extract(), wave_occurrence(), wave_topfreq()


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