changeset 4137:4e8255035e84

[project @ 2002-10-31 15:10:57 by jwe]
author jwe
date Thu, 31 Oct 2002 15:10:57 +0000
parents c06ee5520e4f
children b38835ea3c6e
files scripts/ChangeLog scripts/statistics/distributions/discrete_pdf.m
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Thu Oct 31 02:27:05 2002 +0000
+++ b/scripts/ChangeLog	Thu Oct 31 15:10:57 2002 +0000
@@ -1,3 +1,7 @@
+2002-10-31  Francesco Potorti` <pot@gnu.org>
+
+	* statistics/distributions/discrete_pdf.m: Fix typo.
+
 2002-10-09  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
 	* mkdoc: Exit immediately on errors.
--- a/scripts/statistics/distributions/discrete_pdf.m	Thu Oct 31 02:27:05 2002 +0000
+++ b/scripts/statistics/distributions/discrete_pdf.m	Thu Oct 31 15:10:57 2002 +0000
@@ -57,7 +57,7 @@
   k = find (!isnan (x));
   if (any (k))
     n = length (k);
-    pdf (k) = ((x(k) * ones (1, m)) == (ones (n, 1) * v)) * P;
+    pdf (k) = ((x(k) * ones (1, m)) == (ones (n, 1) * v)) * p;
   endif
 
   pdf = reshape (pdf, r, c);