Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
IENT
GDET3-Demos
Commits
818172a4
Commit
818172a4
authored
Nov 05, 2020
by
Hafiz Emin Kosar
Browse files
- inverse laplace and z-transform: round Hf to 8 decimals to ignore unnecessary accuracy
parent
f2acc4c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/laplace/laplace_plot.py
View file @
818172a4
...
...
@@ -433,7 +433,7 @@ class pzPlot():
if
not
(
roc
[
0
]
<=
0
<=
roc
[
1
]):
S_f
=
np
.
full
(
self
.
f
.
shape
,
np
.
NaN
)
else
:
S_f
=
rwth_transforms
.
ilaplace_Hf
(
self
.
f
,
self
.
H0
,
poles
,
zeroes
,
poles_order
,
zeroes_order
,
dB
=
True
)
S_f
=
rwth_transforms
.
ilaplace_Hf
(
self
.
f
,
self
.
H0
,
poles
,
zeroes
,
poles_order
,
zeroes_order
,
dB
=
True
)
.
round
(
8
)
# process signals
# delete existing dirac
...
...
src/z_transform/z_transform.py
View file @
818172a4
...
...
@@ -442,7 +442,7 @@ class zPlot():
# update f-domain
if
self
.
systemIsStable
:
H_f
=
np
.
abs
(
rwth_transforms
.
iz_Hf
(
self
.
f
,
self
.
H0
,
poles
,
zeroes
,
poles_order
,
zeroes_order
,
True
))
H_f
=
np
.
abs
(
rwth_transforms
.
iz_Hf
(
self
.
f
,
self
.
H0
,
poles
,
zeroes
,
poles_order
,
zeroes_order
,
True
))
.
round
(
8
)
else
:
H_f
=
np
.
ones
(
self
.
f
.
shape
)
*
-
.
5
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment