Metadata-Version: 2.1
Name: tfest
Version: 0.2.2
Summary: Transfer function estimation based on frequency response.
Home-page: https://github.com/giuliovv/tfest
Author: Giulio Vaccari
Author-email: io@giuliovaccari.it
License: MIT
Download-URL: https://github.com/giuliovv/tfest/archive/refs/tags/v0.2.2-alpha.tar.gz
Description: # Tfest
        Transfer function estimation with frequency response. Only works for SISO systems for now.
        Python equivalent of MATLAB tfest
        
        ### Installation:
        ```shell
        pip install tfest
        ```
        
        ### Example:
        To get a scipy transfer function:
        ```python
        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:
        ```python
        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):
        ```python
        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):
        ```python
        te.estimate(3, 4, time=1, l1=0.1)
        ```
        
Keywords: tfest,frequency,matlab
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.6
Description-Content-Type: text/markdown
