mirror of
https://github.com/rasbt/python_reference.git
synced 2025-01-31 05:33:47 +00:00
Merge branch 'master' of https://github.com/rasbt/python_reference
This commit is contained in:
commit
d7866ae8b5
|
@ -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