cr.nimble.dsp.norm_freq

cr.nimble.dsp.norm_freq(frequency, sampling_rate)[source]

Returns the normalized frequency

The Nyquist frequency is the half of the sampling rate. In normalized range, the Nyquist frequency has a value of 1. If sampling rate is 200 Hz and signal frequency is 20 Hz, then Nyquist frequency is 100 Hz and the normalized frequency is 0.2.

Parameters
  • frequency (float) – Frequency in Hz.

  • sampling_rate (float) – Sampling rate of signal in Hz.

Returns

Normalized sampling frequency

Return type

float