Tfest
Transfer function estimation with frequency response. Python equivalent of MATLAB tfest (but the algorithm is not exactly the same)
Only works wuth SISO systems for now.
Installation:
pip install tfest
Example:
To get a scipy transfer function:
import tfest
# u: input
# y: output
te = tfest.tfest(u, y)
# n_zeros, n_poles
te.estimate(3, 4, time=1)
te.get_transfer_function()
"time" is simulation length in seconds. To plot its bode diagram:
te.plot_bode()
Default 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):
te.estimate(3, 4, method="h2", time=1)
te.estimate(3, 4, method="fft", time=1)
To use L1 normalization set the value of lambda l1 (default l1=0):
te.estimate(3, 4, time=1, l1=0.1)
Metadata
Release files for tfest 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tfest-0.2.3.tar.gz | 3.3 kB | Without provenance | Details for tfest-0.2.3.tar.gz |
Release files / tfest-0.2.3.tar.gz
| Download URL | tfest-0.2.3.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2283437bf8b7978846c96e4c72ae6fcf305cf2ffc9869544d7b4a60f4b8a6e2
|
|
BLAKE2b-256 checksum How to use checksums |
1fa0da6d054ac6130931f8a48d977ab9e44d55cdbcee6da520884f34f809e491
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.8
|
Security for tfest 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.