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

A querstion about HighPass with value #23

Closed
giottolee opened this issue Sep 7, 2022 · 1 comment
Closed

A querstion about HighPass with value #23

giottolee opened this issue Sep 7, 2022 · 1 comment

Comments

@giottolee
Copy link

First, i'm sorry i didn't discuss my question clearly. I mean that i used the same sample rate, cutofFrequency and order on concstructor. But i found that I get different B, A. I don't know the reason of this question.
Java:
image

Python:
image

image

Maybe something wrong with param in ?

@berndporr
Copy link
Owner

berndporr commented Sep 7, 2022

Sorry but screenshots are of no use to make a case. You'd need to send code.
However I see that you are using for example filtfilt in python which is an a-causal filter running in neg and positive time to achieve linear phase on an array while iirj is a causal filter. See also discussions about this on the sister iir1 c++ filter. This crops up at regular intervals and is the result of atrocious DSP teaching with MATLAB heritage and sadly also misleading comments all over the web. For a starter you you'd need to use lfilter in python which is the real causal filter. However, I'm sorry I cannot teach you digital signal processing here but you'll find my youTube videos here: https://www.youtube.com/dspcourse.

Repository owner locked as resolved and limited conversation to collaborators Sep 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants