Beispiel #1
0
        public void bandpass(double low_value, double high_value)
        {
            OnlineFilter bandpass = OnlineFirFilter.CreateBandpass(ImpulseResponse.Finite, fs_hz, low_value, high_value);

            for (int column_id = first_eeg_channel; column_id <= last_eeg_channel; column_id++)
            {
                double[] filtered = bandpass.ProcessSamples(data.GetColumn(column_id));
                data = data.SetColumn(column_id, filtered);
            }
        }
Beispiel #2
0
        public double[] Bandpassfilter(double[] data, int sampling, int lowcutoff, int highcutoff)
        {
            this._sampling     = sampling;
            this._low_cutoff_  = lowcutoff;
            this._high_cutoff_ = highcutoff;
            var bandpassnarrow = OnlineFirFilter.CreateBandpass(ImpulseResponse.Finite, sampling, _low_cutoff_, _high_cutoff_, 17);

            data = bandpassnarrow.ProcessSamples(data);
            return(data);
        }