We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a3cf62 commit d6479e3Copy full SHA for d6479e3
2 files changed
.DS_Store
0 Bytes
useful_scripts/univariate_rayleigh_pdf.py
@@ -6,7 +6,7 @@ def comp_theta_mle(d):
6
dataset for a Rayleigh distribution.
7
8
"""
9
- theta = len(d) / sum([x^2 for x in d])
+ theta = len(d) / sum([x**2 for x in d])
10
return theta
11
12
def likelihood_ray(x, theta):
0 commit comments