spectrum.py 文件源码

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

项目:pactools 作者: pactools 项目源码 文件源码
def crop_for_fast_hilbert(signals):
    """Crop the signal to have a good prime decomposition, for hilbert filter.
    """
    if signals.ndim < 2:
        tmax = signals.shape[0]
        while prime_factors(tmax)[-1] > 20:
            tmax -= 1
        return signals[:tmax]
    else:
        tmax = signals.shape[1]
        while prime_factors(tmax)[-1] > 20:
            tmax -= 1
        return signals[:, :tmax]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号