Skip to main content

Transfer function estimation based on frequency response.

Project description

Tfest

Transfer function estimation with frequency response. Only works for SISO systems for now. Python equivalent of MATLAB tfest

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tfest-0.2.2.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file tfest-0.2.2.tar.gz.

File metadata

  • Download URL: tfest-0.2.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for tfest-0.2.2.tar.gz
Algorithm Hash digest
SHA256 2ae11e8483f5fec566453e7f25c3dca9cc534e1a9ded558bd319a5faa2b873da
MD5 843178f6443f841d64f12e3e0958c019
BLAKE2b-256 d17d371eed39519dc39fbf2eac308c2db237aa6216ce80f7d17c002ed00541f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page