Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

很棒的改写,对比Python版本发现了点儿新问题,可以在md更新一下 #5

Closed
fuerpy opened this issue Nov 16, 2021 · 0 comments

Comments

@fuerpy
Copy link

fuerpy commented Nov 16, 2021

我用的是Python版本filtfilt是scipy.signal.filtfilt函数,然后我发现输出和你的对应不上,然后我就从网上搜索看到了Matlab和Python在滤波过程中的差异,会在函数计算中差0.3个相位差,所以在Python函数中 output = signal.filtfilt(b,a,x,padlen=3*(max(len(b),len(a))-1)
就可以得到一样的输出了。Matlab中不支持更改padlen(参考http://dong.sh/posts/differencefiltfiltfunction/)

@hdw09 hdw09 closed this as completed Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants