View source: R/pipeline-downsample.R
downsample_pupil | R Documentation |
This function downsamples pupil data by applying an anti-aliasing filter before decimation. Unlike binning, downsampling preserves the original temporal dynamics without averaging within bins.
This function is called by the exposed wrapper downsample()
.
downsample_pupil(x, prev_op, target_fs, plot_freqz, current_fs, rp, rs)
x |
A data frame containing pupil data with columns |
prev_op |
The name of the previous operation's pupil column |
target_fs |
The target sampling frequency in Hz after downsampling |
plot_freqz |
A flag to indicate whether to display the filter frequency
response. Defaults to |
current_fs |
The current sampling frequency in Hz. Defaults to |
rp |
Passband ripple in dB. Defaults to |
rs |
Stopband attenuation in dB. Defaults to |
A list containing the downsampled data and the decimated sample rate
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.