def sound_energy_level(energy, reference_energy=REFERENCE_ENERGY):
    """
    Sound energy level L_{J} in dB.

    :param energy: Sound energy :math:`J`.
    :param reference_energy: Reference sound energy :math:`J_0`.

    .. math:: L_{J} = 10 \\log_{10}{ \\frac{J}{J_0} }

    """
    return np.log10( energy/reference_energy )
dataset/ETHPy150Open python-acoustics/python-acoustics/acoustics/standards/iso_tr_25417_2007.py/sound_energy_level/original