Steve L. Nyemba il y a 8 ans
Parent
commit
537f359527
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3 2
      test/demo.py

+ 3 - 2
test/demo.py

@@ -15,8 +15,9 @@ nm = np.matrix([x__,y__])
 cx = np.cov(nm)
 print cx.shape
 x = np.array([1.9,3])
-
-a = 1/ np.sqrt(2*np.pi)
+n = 2
+a = 1/ np.sqrt((2*np.pi**k)*np.det(cx))
+b = np.exp(() )
 #from scipy.stats import multivariate_normal
 #print multivariate_normal.pdf(x,u,cx)