Title: add zpk() function by murrayrm · Pull Request #816 · python-control/python-control · GitHub
Open Graph Title: add zpk() function by murrayrm · Pull Request #816 · python-control/python-control
X Title: add zpk() function by murrayrm · Pull Request #816 · python-control/python-control
Description: This PR adds the function zpk, which creates a transfer function (as a NamedIOSystem) 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 the matlab module there are also functions zpk2ss and zpk2tf that implement lower level behavior (eg, zpk2ss returns A, B, C, D). This is similar to MATLAB. if you want to get a StateSpace system from a zpk representation, use sys = ct.ss(ct.zpk(zeros, poles, gain)). Unit tests and updated documentation are also included.
Open Graph Description: This PR adds the function zpk, which creates a transfer function (as a NamedIOSystem) from a zero, pole, gain representation. This responds to issue #749. Also added in code to make sure that sign...
X Description: This PR adds the function zpk, which creates a transfer function (as a NamedIOSystem) from a zero, pole, gain representation. This responds to issue #749. Also added in code to make sure that sign...
Opengraph URL: https://github.com/python-control/python-control/pull/816
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:23ad8759-6c8d-bb88-f25f-c52553555aaf |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 94EC:360EE8:7EC1D:AEAFD:697A5A44 |
| html-safe-nonce | 9abc02604e00d5d3a7ad09f9fe37604baddfc17ff586c112c7ae76d4cec181b9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEVDOjM2MEVFODo3RUMxRDpBRUFGRDo2OTdBNUE0NCIsInZpc2l0b3JfaWQiOiIzNjExOTE0NjUyNzA0NDYzNDI5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 06e9dc98426692dc575caa9312f05b5c1ab5f2714463fb859aa948c554ccf937 |
| hovercard-subject-tag | pull_request:1167917333 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python-control/python-control/pull/816/files |
| twitter:image | https://avatars.githubusercontent.com/u/293362?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/293362?s=400&v=4 |
| og:image:alt | This PR adds the function zpk, which creates a transfer function (as a NamedIOSystem) from a zero, pole, gain representation. This responds to issue #749. Also added in code to make sure that sign... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a2296221ffa83b7f45f8ba9b62e1aed869492cb43693309e51b8111607e38282 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python-control/python-control git https://github.com/python-control/python-control.git |
| octolytics-dimension-user_id | 2285872 |
| octolytics-dimension-user_login | python-control |
| octolytics-dimension-repository_id | 22791752 |
| octolytics-dimension-repository_nwo | python-control/python-control |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 22791752 |
| octolytics-dimension-repository_network_root_nwo | python-control/python-control |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 46d8a07df71eb59259545c68ce36abf1075d2fca |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width