【问题标题】:Equivalent of scipy.signal.lfilter in numpynumpy 中 scipy.signal.lfilter 的等价物
【发布时间】:2017-02-06 08:14:19
【问题描述】:

python中有没有以下内容的替代品?

from scipy import signal

scipy.signal.lfilter()

我可以从任何 numpy 命令得到与上述相同的结果吗?

【问题讨论】:

  • 答案可能是否定的,但如果只是为了避免安装 scipy,您可以随时尝试复制 source。不过,您必须检查依赖项。

标签: python python-3.x numpy filter scipy


【解决方案1】:

如果您使用的是简单的 FIR 滤波器,您可以尝试使用 numpy.convolve,因为在这种情况下,b=windowa=1lfilter 参数而言。边缘效果可能有点不同。您可能希望将mode='same' 用于convolve 函数。

【讨论】:

    猜你喜欢
    • 2016-02-26
    • 2011-12-08
    • 1970-01-01
    • 2016-03-27
    • 1970-01-01
    • 2020-09-05
    • 2014-07-26
    • 2019-03-24
    • 2012-09-26
    相关资源
    最近更新 更多