qmf_realtime_class.py 文件源码

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

项目:ASP 作者: TUIlmenauAMS 项目源码 文件源码
def x2polyphase(x, N):
    """
        Method to convert input signal x (a row vector) into a polphase row vector
        of blocks with length N.

        Arguments   :
            x       : (1D Array) Input samples
            N       : (int)  Number of subbands

        Returns     :
            y       :  (3D Array) Polyphase representation of the input signal

        Author : Gerald Schuller ('shl'), Dec/2/15
    """

    #Number of blocks in the signal:
    L=int(np.floor(len(x)/N))

    xp=np.zeros((1,N,L), dtype = np.float32)

    for m in range(L):
        xp[0,:,m] = x[m*N: (m*N+N)]

    return xp
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号