mirror of
https://github.com/shizand/statapp.git
synced 2025-04-01 23:23:45 +03:00
fix: исправлены предупреждения Codacy
This commit is contained in:
parent
91acacfb5c
commit
665de25ab0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user