This function lowpass filters pupil data using a Butterworth filter.
This function is called by the exposed wrapper lpfilt()
lpfilt_pupil(x, prev_op, wp, ws, rp, rs, fs, plot_freqz)
A vector of filtered pupil data
A data frame containing pupil data
The name of the previous operation in the pipeline
The end of passband frequency in Hz (desired lowpass cutoff)
The start of stopband frequency in Hz (required lowpass cutoff)
Required maximal ripple within passband in dB
Required minimal attenuation within stopband in dB
The sample rate of the data
A flag to indicate whether to display the filter frequency response