mitdb.py 文件源码

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

项目:qrs-tutorial 作者: Nospoko 项目源码 文件源码
def convert_input(channel, annotation):
    """ Into output """
    # Remove non-beat annotations
    beats = beat_annotations(annotation)

    # Create dirac-comb signal
    dirac = np.zeros_like(channel)
    dirac[beats] = 1.0

    # Use hamming window as a bell-curve filter
    width = 36
    filter = ss.hamming(width)
    gauss = np.convolve(filter, dirac, mode = 'same')

    return dirac, gauss
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号