design_eegfiltnew#

design_eegfiltnew(srate, *, locutoff=None, hicutoff=None, filtorder=None, revfilt=False, minphase=False)#

Design the Hamming-windowed FIR applied by pop_eegfiltnew.

Parameters:
  • srate (float) – Sampling rate in Hz.

  • locutoff (float | None) – Lower passband edge in Hz. None, 0, or empty means none.

  • hicutoff (float | None) – Upper passband edge in Hz. None, 0, or empty means none.

  • filtorder (int | None) – Even FIR order. Omit it to use the default order heuristic.

  • revfilt (bool) – Design a notch or highpass instead of a bandpass or lowpass.

  • minphase (bool) – Convert the coefficients to minimum phase.

Returns:

Coefficients and the applied design. cutoff lists the -6 dB edges in Hz, and df is the transition width in Hz. A highpass is designed as a reversed lowpass: locutoff is None, hicutoff is the passband edge, and revfilt is true.

Return type:

tuple[ndarray, dict[str, Any]]