transforms.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:mdct 作者: nils-werner 项目源码 文件源码
def cmdct(x, odd=True):
    """ Calculate complex modified discrete cosine transform of input
    inefficient pure-Python method.

    Use only for testing.

    Parameters
    ----------
    X : array_like
        The input signal
    odd : boolean, optional
        Switch to oddly stacked transform. Defaults to :code:`True`.

    Returns
    -------
    out : array_like
        The output signal

    """
    return trans(x, func=lambda x: numpy.cos(x) - 1j * numpy.sin(x), odd=odd)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号