{"id":14989258,"url":"https://github.com/giuliovv/tfest","last_synced_at":"2025-04-12T00:32:26.369Z","repository":{"id":52993842,"uuid":"422554950","full_name":"giuliovv/tfest","owner":"giuliovv","description":"Estimate transfer function from its frequency response","archived":false,"fork":false,"pushed_at":"2022-01-10T21:07:22.000Z","size":1526,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T21:02:26.197Z","etag":null,"topics":["estimation","pypi-package","python3","scipy","tfest","transferfunction"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/giuliovv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-29T11:48:37.000Z","updated_at":"2024-01-31T19:38:41.000Z","dependencies_parsed_at":"2022-09-10T04:03:35.689Z","dependency_job_id":null,"html_url":"https://github.com/giuliovv/tfest","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuliovv%2Ftfest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuliovv%2Ftfest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuliovv%2Ftfest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giuliovv%2Ftfest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/giuliovv","download_url":"https://codeload.github.com/giuliovv/tfest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501427,"owners_count":21114674,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["estimation","pypi-package","python3","scipy","tfest","transferfunction"],"created_at":"2024-09-24T14:17:57.213Z","updated_at":"2025-04-12T00:32:26.037Z","avatar_url":"https://github.com/giuliovv.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tfest\r\n[![PyPI version](https://badge.fury.io/py/tfest.svg)](https://badge.fury.io/py/tfest)\r\n[![Downloads](https://static.pepy.tech/personalized-badge/tfest?period=total\u0026units=international_system\u0026left_color=black\u0026right_color=red\u0026left_text=Downloads)](https://pepy.tech/project/tfest)\r\n\r\nTransfer function estimation with frequency response. \r\nPython equivalent of MATLAB tfest (but the algorithm is not exactly the same)\r\n\r\nOnly works with SISO systems for now.\r\n\r\n\r\n### Installation:\r\n```shell\r\npip install tfest\r\n```\r\n\r\n### Example:\r\nTo get a scipy transfer function:\r\n```python\r\nimport tfest\r\n# u: input\r\n# y: output\r\nte = tfest.tfest(u, y)\r\n# n_zeros, n_poles\r\nte.estimate(3, 4, time=1)\r\nte.get_transfer_function()\r\n```\r\n\"time\" is simulation length in seconds.\r\nTo plot its bode diagram:\r\n```python\r\nte.plot_bode()\r\n```\r\nDefault method to calculate the frequency response Y/U is H1 estimator, if you want to use H2 or frequency/frequency just set the method to \"h2\" or \"fft\" and specify the time length of the simulation (in seconds, default is 1):\r\n```python\r\nte.estimate(3, 4, method=\"h2\", time=1)\r\nte.estimate(3, 4, method=\"fft\", time=1)\r\n```\r\nTo use L2 regularization set the value of lambda l1 (default l1=0):\r\n```python\r\nte.estimate(3, 4, time=1, l1=0.1)\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiuliovv%2Ftfest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiuliovv%2Ftfest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiuliovv%2Ftfest/lists"}