mirror of
https://github.com/rasbt/python_reference.git
synced 2024-11-23 20:11:13 +00:00
bugfix rayleigh distr
This commit is contained in:
parent
6a3cf62414
commit
d6479e325c
|
@ -6,7 +6,7 @@ def comp_theta_mle(d):
|
||||||
dataset for a Rayleigh distribution.
|
dataset for a Rayleigh distribution.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
theta = len(d) / sum([x^2 for x in d])
|
theta = len(d) / sum([x**2 for x in d])
|
||||||
return theta
|
return theta
|
||||||
|
|
||||||
def likelihood_ray(x, theta):
|
def likelihood_ray(x, theta):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user