fix: исправлены предупреждения Codacy

This commit is contained in:
Maxim Slipenko 2024-02-11 18:25:54 +03:00
parent 91acacfb5c
commit 665de25ab0

View File

@ -67,10 +67,8 @@ class NormalDistributionWindow(DistributionWindow):
points = np.sort(points)
mu = np.mean(points)
sigmaSquared = np.var(points)
y_values = normalDensity(points, mu, sigmaSquared)
sc.axes.plot(points, y_values)
yValues = normalDensity(points, mu, sigmaSquared)
sc.axes.plot(points, yValues)
return sc
@ -83,6 +81,6 @@ class ExponentialDistributionWindow(DistributionWindow):
points = np.sort(points)
mu = np.mean(points)
lambdaParam = 1 / mu
y_values = lambdaParam * np.exp(-lambdaParam * points)
sc.axes.plot(points, y_values)
yValues = lambdaParam * np.exp(-lambdaParam * points)
sc.axes.plot(points, yValues)
return sc