neurodsp.filt.utils.compute_nyquist¶
- neurodsp.filt.utils.compute_nyquist(fs)[source]¶
Compute the Nyquist frequency.
- Parameters
- fsfloat
Sampling rate, in Hz.
- Returns
- float
The Nyquist frequency of a signal with the given sampling rate, in Hz.
Examples
Compute the Nyquist frequency for a 500 Hz sampling rate:
>>> compute_nyquist(fs=500) 250.0