Skip to content

Commit

Permalink
fix: исправлена ошибка, при СКО = 0 для фактора
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks1mS committed Sep 28, 2023
1 parent cca5774 commit 57dec07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions statapp/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ def on_generateXaction_triggered(self):
k = 2 - 1 / k
if gfw.typeConnection == INDIRECT_LINK:
k = 1 / k
if gfw.deviation == 0:
k = 1

x = np.random.normal(gfw.mat * (k ** 3), gfw.deviation * k, size=1)
x_arr = np.append(x_arr, x)
Expand Down

0 comments on commit 57dec07

Please sign in to comment.