Skip to content

Commit

Permalink
Merge branch 'main' of github.com:giuliovv/tfest into main
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliovv committed Oct 31, 2021
2 parents b555663 + 9c43a65 commit 89bbf75
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ import tfest
# y: output
te = tfest.tfest(u, y)
# n_zeros, n_poles
te.estimate(3, 4)
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 cross density/ power density, if you want to use frequency/frequency just set the method to "fft" and specify the time length of the simulation (in seconds, default is 1):
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)
```
```

0 comments on commit 89bbf75

Please sign in to comment.