cutcutcodec.core.signal.window.band_to_alpha¶
- cutcutcodec.core.signal.window.band_to_alpha(band: Real) float[source]¶
Inverse of the empirical estimation based on regression.
Bijection of
alpha_to_band().As there is no closed form for this function, it is approximated using the tangent method.
Examples¶
>>> from cutcutcodec.core.signal.window import alpha_to_band, band_to_alpha >>> round(alpha_to_band(band_to_alpha(0.9)), 6) 0.9 >>> round(alpha_to_band(band_to_alpha(1.8)), 6) 1.8 >>> round(alpha_to_band(band_to_alpha(3.4)), 6) 3.4 >>> round(alpha_to_band(band_to_alpha(4.9)), 6) 4.9 >>> round(alpha_to_band(band_to_alpha(6.4)), 6) 6.4 >>>