[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #34362] [octave forge] (statistics) binopdf.m:
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #34362] [octave forge] (statistics) binopdf.m: Implement high accuracy Loader algorithm for n >= 10 |
Date: |
Wed, 27 Jul 2022 15:11:44 -0400 (EDT) |
Follow-up Comment #11, bug #34362 (project octave):
@Andreas, just noticed a tiny typo in the function. doesn't change output, but
don't want the stray operator to cause confusion later:
diff --git a/inst/distributions/binopdf.m b/inst/distributions/binopdf.m
index 0024e59..80c2eff 100644
--- a/inst/distributions/binopdf.m
+++ b/inst/distributions/binopdf.m
@@ -174,7 +174,7 @@ function retval = loader_expansion (x, n, p, nx, q)
delta_nx(!nx_precalc) = delta_fn (nx(!nx_precalc));
## calculate exp(log(pdf));
- retval = exp ((delta_n - delta_x - delta_nx + -...
+ retval = exp ((delta_n - delta_x - delta_nx - ...
deviance (x, n .* p) - ...
deviance (nx, n .* q)) - ...
0.5 * (log(2*pi) + log (x) + log (1-x./n)));
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?34362>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/