Commit 818172a4 authored by Hafiz Emin Kosar's avatar Hafiz Emin Kosar
Browse files

- inverse laplace and z-transform: round Hf to 8 decimals to ignore unnecessary accuracy

parent f2acc4c7
......@@ -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
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment