fix: исправлена ошибка, при СКО = 0 для фактора

This commit is contained in:
Maxim Slipenko 2023-09-28 22:39:02 +03:00
parent cca57740a2
commit 57dec07000

View File

@ -88,6 +88,8 @@ class MainWindow(QMainWindow):
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)