pyFDN.octave_bands#

pyFDN.octave_bands(fc=1000.0, start=-4.0, n=8, fs=None)[source]#

Octave band edges and centre frequencies.

Centre frequencies are fc * 2**k for k = start start + n - 1; the band edges are the centre frequency divided and multiplied by sqrt(2).

Parameters:
  • fc (float) – Reference centre frequency in Hz (default 1000).

  • start (float) – Octave offset of the lowest band relative to fc (default -4 → 62.5 Hz).

  • n (int) – Number of octave bands (default 8).

  • fs (float | None) – If given, bands whose upper edge reaches Nyquist (fs/2) are dropped.

Return type:

tuple[ndarray, ndarray]

Returns:

  • bands ((n_bands, 2) ndarray) – Lower and upper edge of each band in Hz.

  • f_centre ((n_bands,) ndarray) – Centre frequency of each band in Hz.