spectral_analysis.py 文件源码

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

项目:resin 作者: kylerbrown 项目源码 文件源码
def taper_matrix(N, W):
    """
    Generates the matrix used for taper calculations.
    """
    N = int(N)
    m = np.zeros((N, N))
    # diagonal
    diag, off_diag = taper_diags(N, W)
    diag_indices = np.arange(0, N) * (N + 1)
    np.put(m, diag_indices, diag)
    np.put(m, (diag_indices[0:-1] + 1), off_diag)
    np.put(m, (diag_indices[1:] - 1), off_diag)
    return m
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号