-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
WIP: signal: Add the function sosfreqz. #4465
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
Conversation
01ca9fd
to
c09394a
Compare
API questions:
|
Maybe this would be a good opportunity to make a more general function named |
|
|
I simply copied the API of Any proposals for the API of the new function? Currently, we have the following representations of a linear filter:
I could see adding a single input, single output state-space representation in the future: (A, B, C, D). I have thought a little bit about this, and my only conclusion so far has been that I don't like the idea of distinguishing which format is being used by checking the length of the input argument (e.g. if the length is 2, it must be (b, a), if 3 it must be (z, p, k), etc.) That feels too implicit and brittle. Instead of a new function, a more radical approach is to create a LinearFilter class, with, say class methods such as |
@endolith asked
That is only for testing, and the test that uses it is only run if |
I think you mentioned having a |
I think this is ok, as none of the existing filter formats has the same shape. There are already functions that do this, like
I do support creating a filter object class, though, that stores the coefficients in whichever way it was initiated and converts to the others when necessary. |
@WarrenWeckesser I removed the 0.16.0 Milestone, because it looks like this still needs significant changes and isn't really required for 0.16.0 |
That's fine, Ralf. Thanks for getting the 0.16 release going. |
I think this function provides really important functionality - it would be great if |
We now have proper classes ( |
I don't think I'll have time to get back to this for the 0.18 release, so if anyone want to take over this PR, or take whatever looks useful and start a new pull request, that would be fine with me. |
If we're okay with having +1 from me on using I'd actually also like to write e.g. |
I'm all for it being included as its own function for now, I'm happy to help/review for some quick turnaround. I'd also like to eventually see some SOS equivalents of functions like Over in #6059, I have tentatively named a new response function |
Closing for #6328 |
No description provided.