fft.py 文件源码

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

项目:ugm-kayu-nde 作者: mappuji 项目源码 文件源码
def max_p(fft_ordinate, rate):
    """ Find an argmax of fft result
    """
    upper_thresh_freq = 4100
    lower_thresh_freq = 800
    upper_thresh = int(len(fft_ordinate) / (rate / 2) * upper_thresh_freq)
    lower_thresh = int(len(fft_ordinate) / (rate / 2) * lower_thresh_freq)
    # return max(fft_ordinate)
    return max(fft_ordinate[lower_thresh:upper_thresh])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号