Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add zpk() function#816

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
murrayrm merged 2 commits intopython-control:mainfrommurrayrm:zpk-13Dec2022
Dec 17, 2022
Merged

Conversation

murrayrm
Copy link
Member

@murrayrmmurrayrm commentedDec 16, 2022
edited
Loading

This PR adds the functionzpk, which creates a transfer function (as aNamedIOSystem) from a zero, pole, gain representation. This responds to issue#749.

Also added in code to make sure that signal names are copied correctly in various conversions, removing some comments entered in PR#804. In_convert_to_transfer_function this involved removing renaming from the low level function, as documented in the comment string.

Notes:

  • Unlike in MATLAB and SciPy, which have zpk classes, here we just create a transfer function from the zpk data. That seems like the most common use case.

  • In thematlab module there are also functionszpk2ss andzpk2tf that implement lower level behavior (eg, zpk2ss returns A, B, C, D). This is similar to MATLAB. if you want to get aStateSpace system from a zpk representation, usesys = ct.ss(ct.zpk(zeros, poles, gain)).

  • Unit tests and updated documentation are also included.

@coveralls
Copy link

coveralls commentedDec 16, 2022
edited
Loading

Coverage Status

Coverage increased (+0.006%) to 94.817% when pulling7ee0c0e on murrayrm:zpk-13Dec2022 intob4cd96b on python-control:main.

@murrayrmmurrayrm linked an issueDec 16, 2022 that may beclosed by this pull request
@murrayrmmurrayrmforce-pushed thezpk-13Dec2022 branch 2 times, most recently from7983829 toa123f15CompareDecember 17, 2022 15:29
@murrayrmmurrayrm merged commit821bfa9 intopython-control:mainDec 17, 2022
@murrayrmmurrayrm added this to the0.9.3 milestoneDec 24, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@bnavigatorbnavigatorbnavigator approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
0.9.3
Development

Successfully merging this pull request may close these issues.

Include a zpk2tf function
3 participants
@murrayrm@coveralls@bnavigator

[8]ページ先頭

©2009-2025 Movatter.jp