def dB(x, power=True):
    if not power:
        return 20 * np.log10(np.abs(x))
    return 10 * np.log10(np.abs(x))


#-----------------------------------------------------------------------------
# Stats utils
#-----------------------------------------------------------------------------
The signal handler for the index changed signal.
dataset/ETHPy150Open nipy/nitime/nitime/utils.py/dB--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/qt_combo_box.py/QtComboBox.on_index_changed