From d6479e325cb8b8c950653fb04602910696671de6 Mon Sep 17 00:00:00 2001 From: rasbt Date: Wed, 23 Apr 2014 22:00:27 -0400 Subject: [PATCH] bugfix rayleigh distr --- .DS_Store | Bin 12292 -> 12292 bytes useful_scripts/univariate_rayleigh_pdf.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.DS_Store b/.DS_Store index 19c45a57b7a5f8db04253586e4dfce22de7d5c3d..4732423c71b8ccc2afb4018e2a292d0242b9e28c 100644 GIT binary patch delta 56 zcmZokXi1ph&&a+pU^hP_`(_>iA102J;^ds9{QR8B`htp^BZS&mH?vE8W0`CyD8Ko$ MhzRrM1@c$;0R%k~d;kCd delta 47 zcmZokXi1ph&&akhU^hP_+h!gCAEwQXLT#)Q8#FhwOMGKtVhW#ZARw~YM)rgdPz(TS C+78zM diff --git a/useful_scripts/univariate_rayleigh_pdf.py b/useful_scripts/univariate_rayleigh_pdf.py index 33b9d97..de0ae48 100644 --- a/useful_scripts/univariate_rayleigh_pdf.py +++ b/useful_scripts/univariate_rayleigh_pdf.py @@ -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):