Description Usage Arguments Details
View source: R/AudioProcessing.R
Signal processing the zdevice audio signal
1 2 3 4 5 |
d |
A two-column data.frame with the first column being time and the second being signal |
rate |
Sampling rate for the signal |
thresh_right |
Threshold to filter out signal from the end to remove artifacts like removing device and the like, that can bias results. There are two options: 1. stoptime: Time (in seconds) from the end when we stop 2. last_window: which is the last observation (index) to keep (is this good?) |
preprocess |
Options are 'ma' (Moving average) and 'none' |
filtering |
Options are 'lgf' (local Gaussian Filtering), 'gf' (Gaussian Filtering), 'mgf' (Mixed Gaussian Filtering, not implemented), and 'none' |
output |
Options are 'rmean' (running mean), 'rmedian' (running median), 'apnea', and 'none' |
preParams |
Parameters for the chosen preprocess method, as a list |
filtParams |
Parameters for the chosen filtering method, as a list |
outputParams |
Parameters for the chosen output method, as a list |
This function allows the modular implementation of different pre-processing, filtering and summarization steps in processing zdevice audio signal. There are several choices for each of these steps already implemented.
Pre-processing
"none" : No pre-processing
"ma" : Run a moving average on the raw signal
"window" : The width of the moving average window in seconds
Filtering
"none": No filtering
"gf" : Gaussian filtering
"threshold": The threshold value beyond which we consider the filtered values to be signal
"robust": Use median
and mad
to scale the data instead of mean
and sd
"lgf": Local Gaussian Filtering (Default)
"threshold": The threshold value beyond which we consider the filtered values to be signal
"window" : The window for computing the local mean and sd for scaling the data, in seconds
"robust": not implemented
Summarizing
"none" : no summarizing
"rmax" : Moving maximum (Default)
"window": Window of the moving average in seconds
"rmean" : Moving average
"window": Window of moving average in seconds
"apnea" : The apnea detection methodology (not implemented)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.