uwacan.spectral.nth_decade_band_edges#

nth_decade_band_edges(bands_per_decade, min_frequency, max_frequency, hybrid_resolution=False, limit_to='center')[source]#

Find band centers and edges for Nth decade (hybrid) bands.

Parameters:
bands_per_decadeint

The number of bands per decade

min_frequencyfloat

A lower frequency limit to use for the band centers, in Hz.

max_frequencyfloat

An upper frequency limit to use for the band centers, in Hz.

hybrid_resolutionfloat, optional

An optional linear hybrid resolution to use at the lower frequencies, in Hz.

limit_to{“center”, “strict”, “inclusive”}, default “center”

Controls how the minimum and maximum frequency limits are applied.

  • “center”: keeps bands with center frequencies inside the range.

  • “strict”: keeps only bands where the entire band is within the range.

  • “inclusive”: keeps bands to cover the entire range, allowing the highest and lowers

    bands to extend beyond the specified limits.

Returns:
centersnumpy.ndarray

The center frequencies of the bands

edges(numpy.ndarray, numpy.ndarray)

Tuple of lower and upper band edges.