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

Use new stateful filter API for filtfilt #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

simonster
Copy link
Member

This provides reduces the memory allocation and provides a small speed boost (on 0.4; on 0.3, where SubArrays are slow, it's probably substantially slower). We could conceivably use this to provide in-place filtfilt, although that is not yet implemented.

I removed support for non-1 initial values of a in filt_stepstate, since we don't need it if the filter is normalized before it is used.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.05%) to 97.46% when pulling 01c3655 on sjk/filtfilt into bcca68b on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 97.45% when pulling e89c702 on sjk/filtfilt into bcca68b on master.

@simonster
Copy link
Member Author

It seems there is a bug in SubArrays on 0.3 that prevents this from working at all there.

This provides reduces the memory allocation and provides a small speed
boost (on 0.4; on 0.3, where SubArrays are slow, it's probably
substantially slower). We could conceivably use this to provide
in-place filtfilt, although that is not yet implemented.

I removed support for non-1 initial values of a in filt_stepstate,
since we don't need it if the filter is normalized before it is used.
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

Successfully merging this pull request may close these issues.

2 participants