Re: [v3] Fix negative_binomial_distribution

2011-03-25 Thread Paolo Carlini
... tweaking the fix like this makes for slightly faster repeated calls (spares a division) and also makes clearer that we had a plain typo p / (1 - p) for (1 - p) / p, grrr.. Double checked Devroye in the meanwhile. Committed to mainline, will be in 4.6.1. Paolo. /// 2011-03-25

[v3] Fix negative_binomial_distribution

2011-03-24 Thread Paolo Carlini
Hi, this does fix a bad thinko of mine in negative_binomial_distribution (the fix will certainly go in 4.6.1, unless Jakub wants it now) + I'm adding basic statistical tests (adapted from GSL) for all the other discrete distributions. Thanks, Paolo. // 2011-03-24 Paolo Carlini