pyFDN.octave_bands#
- pyFDN.octave_bands(*, fc=1000.0, lowest_octave=-4.0, num_bands=8, fs=None)[source]#
Octave band edges and centre frequencies.
Centre frequencies are
fc * 2**kfork = lowest_octave … lowest_octave + num_bands - 1; the band edges are the centre frequency divided and multiplied bysqrt(2).- Parameters:
fc (
float) – Reference centre frequency in Hz (default 1000).lowest_octave (
float) – Octave offset of the lowest band relative tofc(default -4 → 62.5 Hz).num_bands (
int) – Number of octave bands (default 8).fs (
float|None) – If given, bands whose upper edge reaches Nyquist (fs/2) are dropped.
- Return type:
- 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.