bugfix rayleigh distr

This commit is contained in:
rasbt 2014-04-23 22:00:27 -04:00
parent 6a3cf62414
commit d6479e325c
2 changed files with 1 additions and 1 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -6,7 +6,7 @@ def comp_theta_mle(d):
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
def likelihood_ray(x, theta):