def kaiser_beta(a):
    if a > 50:
        beta = 0.1102 * (a - 8.7)
    elif a > 21:
        beta = 0.5842 * (a - 21) ** 0.4 + 0.07886 * (a - 21)
    else:
        beta = 0.0
    return beta
Compute the Kaiser parameter `beta`, given the attenuation `a`.
dataset/ETHPy150Open scipy/scipy/scipy/signal/fir_filter_design.py/kaiser_beta