peng/wave_functions.py
def group_delay(wave):
    r"""
    Return the group delay of a waveform.

    :param wave: Waveform
    :type  wave: :py:class:`peng.eng.Waveform`

    :rtype: :py:class:`peng.eng.Waveform`

    .. [[[cog cog.out(exobj_eng.get_sphinx_autodoc(raised=True)) ]]]
    .. Auto-generated exceptions documentation for
    .. peng.wave_functions.group_delay

    :raises: RuntimeError (Argument \`wave\` is not valid)

    .. [[[end]]]
    """
    ret = -derivative(phase(wave, unwrap=True) / (2 * math.pi))
    ret.dep_name = "group_delay({0})".format(wave.dep_name)
    ret.dep_units = "sec"
    return ret
def group_delay(wave):
    r"""
    Return the group delay of a waveform.

    :param wave: Waveform
    :type  wave: :py:class:`peng.eng.Waveform`

    :rtype: :py:class:`peng.eng.Waveform`

    .. [[[cog cog.out(exobj_eng.get_sphinx_autodoc(raised=True)) ]]]
    .. Auto-generated exceptions documentation for
    .. peng.wave_functions.group_delay

    :raises: RuntimeError (Argument \`wave\` is not valid)

    .. [[[end]]]
    """
    ret = -derivative(phase(wave, unwrap=True) / (2 * math.pi))
    ret.dep_name = "group_delay({0})".format(wave.dep_name)
    ret.dep_units = "sec"
    return ret
def group_delay ( wave ) : ret = - derivative ( phase ( wave , unwrap = True ) / ( 2 * math . pi ) ) ret . dep_name = "group_delay({0})" . format ( wave . dep_name ) ret . dep_units = "sec" return ret
r"""
    Return the group delay of a waveform.

    :param wave: Waveform
    :type  wave: :py:class:`peng.eng.Waveform`

    :rtype: :py:class:`peng.eng.Waveform`

    .. [[[cog cog.out(exobj_eng.get_sphinx_autodoc(raised=True)) ]]]
    .. Auto-generated exceptions documentation for
    .. peng.wave_functions.group_delay

    :raises: RuntimeError (Argument \`wave\` is not valid)

    .. [[[end]]]
r Return the group delay of a waveform .