cutcutcodec.core.signal.window.band_to_alpha

cutcutcodec.core.signal.window.band_to_alpha(band: float) float[source]

Inverse of the empirical estimation based on regression.

The inverse function is based on the tangent.

Examples

>>> from cutcutcodec.core.signal.window import alpha_to_band, band_to_alpha
>>> round(alpha_to_band(band_to_alpha(0.9)), 4)
0.9
>>> round(alpha_to_band(band_to_alpha(1.8)), 4)
1.8
>>> round(alpha_to_band(band_to_alpha(3.4)), 4)
3.4
>>> round(alpha_to_band(band_to_alpha(4.9)), 4)
4.9
>>> round(alpha_to_band(band_to_alpha(6.4)), 4)
6.4
>>>