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) points = np.sort(points)
mu = np.mean(points) mu = np.mean(points)
sigmaSquared = np.var(points) sigmaSquared = np.var(points)
y_values = normalDensity(points, mu, sigmaSquared) yValues = normalDensity(points, mu, sigmaSquared)
sc.axes.plot(points, yValues)
sc.axes.plot(points, y_values)
return sc return sc
@ -83,6 +81,6 @@ class ExponentialDistributionWindow(DistributionWindow):
points = np.sort(points) points = np.sort(points)
mu = np.mean(points) mu = np.mean(points)
lambdaParam = 1 / mu lambdaParam = 1 / mu
y_values = lambdaParam * np.exp(-lambdaParam * points) yValues = lambdaParam * np.exp(-lambdaParam * points)
sc.axes.plot(points, y_values) sc.axes.plot(points, yValues)
return sc return sc