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)
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user