From bug-octave-request at bevo dot che dot wisc dot edu Wed Jun 6 19:23:33 2001 Subject: trivial bug in discrete_cdf.m From: "John W. Eaton" To: andyj at splash dot Princeton dot EDU Cc: bug-octave at bevo dot che dot wisc dot edu, Kurt.Hornik@ci.tuwien.ac.at Date: Wed, 6 Jun 2001 19:23:27 -0500 On 6-Jun-2001, Andy Jacobson wrote: | I found what appears to be a capitalization bug in | discrete_cdf.m. At least, this script won't work for me | unless the capitalization is uniform. | | diff discrete_cdf.m /packages/octave-2.1.34/scripts/statistics/distributions/discrete_cdf.m | 47c47 | < p = reshape (p / sum (p), m, 1); | --- | > P = reshape (P / sum (P), m, 1); | 57c57 | < cdf (k) = ((x(k) * ones (1, m)) >= (ones (n, 1) * v)) * p; | --- | > cdf (k) = ((x(k) * ones (1, m)) >= (ones (n, 1) * V)) * P; | Fixed in my sources now. BTW, it's generally better to send context diffs, and to run diff OLD NEW (your diffs appear to be reversed). Thanks, jwe ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------