Skip to content
This documentation describes version 4.0.0, which is not released yet. The current version on PyPI is 3.3.0 and does not carry everything described here.

filters.frequencies

Frequency calculation logic according to ANSI/IEC standards.

Auto-generated from the source docstrings by scripts/generate_api_docs.py (make api-docs). Do not edit by hand.

nominal_frequencies(
fraction: float,
limits: list[float] | None = None,
) -> tuple[list[float], list[float], list[float], list[str]]

Calculate frequencies according to ANSI/IEC standards.

Parameters

NameDescription
fractionBandwidth fraction (e.g., 1, 3).
limits[f_min, f_max] limits.

Returns: Tuple of (center_freqs, lower_edges, upper_edges, nominal_labels).

Raises

ExceptionWhen
ValueErrorfor a non-positive or non-finite fraction.
normalized_frequencies(fraction: int) -> list[float]

Get standardized IEC center frequencies.

Parameters

NameDescription
fraction1 or 3 (Octave or 1/3 Octave).

Returns: List of standard frequencies.