-
Notifications
You must be signed in to change notification settings - Fork 256
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
How to set a non-zero filter initial state ? #78
Comments
For FIR filters, you can fill
For biquad filters (and IIR) you can change internal state of More convenient and universal method to set initial state would be good for future versions. |
I too recently ran into this issue of setting a non-zero initial filter state. My solution was as @dlevin256 proposed. Namely, I fill the FIR state object's delay line with my past samples and then I pass the initialized state to the
Formally documenting these technique, perhaps with a convenience method to initialize the delay line, would be nice. |
The requested feature has been implemented in KFR 6. Refer to |
Is it possible to force the initial value of a filter to be non-zero? I couldn't find a way to do it with the current API.
It's a nice thing to do when, for instance, you low pass a signal having a large offset since it allows to skip the possibly long convergence.
The text was updated successfully, but these errors were encountered: