基于残差分析的滤波器最佳截止频率自动搜索
optcutfreq的Python项目详细描述
optcutfreq
基于残差分析的滤波器最佳截止频率自动搜索
通过对截止频率范围内滤波和未滤波信号之间的差异进行残差分析,可以找到“最佳”截止频率(在这种意义上,具有这种截止频率的滤波器可以在不显著影响信号的情况下去除尽可能多的噪声。
最佳截止频率是指残差开始变化很小的频率,因为从这一点来看,理想情况下,它被过滤的主要是噪声和最小的信号。在
安装
pip install optcutfreq
或者
^{pr2}$示例
>>>y=np.cumsum(np.random.randn(1000))>>># optimal cutoff frequency based on residual analysis and plot:>>>fc_opt=optcutfreq(y,freq=1000,show=True)>>># sane analysis but specifying the frequency limits and plot:>>>optcutfreq(y,freq=1000,fclim=[200,400],show=True)>>># It's not always possible to find an optimal cutoff frequency>>># or the one found can be wrong (run this example many times):>>>y=np.random.randn(100)>>>optcutfreq(y,freq=100,show=True)
如何引用这部作品
以下是引用GitHub存储库的建议:
Duarte, M. (2020) optcutfreq: Automatic search of optimal filter cutoff frequency based on residual analysis. GitHub repository, https://github.com/demotu/optcutfreq.
以及可能的BibTeX入口:
@misc{Duarte2020, author = {Duarte, M.}, title = {optcutfreq: Automatic search of optimal filter cutoff frequency based on residual analysis}, year = {2020}, publisher = {GitHub}, journal = {GitHub repository}, howpublished = {\url{https://github.com/demotu/optcutfreq}}}
许可证
此项目的非软件内容在Creative Commons Attribution 4.0 International License下授权,软件代码在MIT license下授权。在
- 项目
标签: