S
sala
Hi all
I have a problem with the Binomial Class in Colt. It usually works
fine. However, with small probabilities, it does not work anymore (it
always returns 0).
e.g.
int s = Binomial.staticNextInt(11,0.00009);
According to the distribution function, the probability of having
excactly one succes is about 0.001 (so it should return a 1 in about
a thousand cases).
However, it never returns anything other than 0, even if I run it
millions of times.
When I increase the p value 10 fold (to 0.0009), it works fine.
Might there be a precision bug?
Also, the official COLT email list does not seem to work. Hoschke
himself (the author of COLT) does not seem to reply to emails.
Can anybody help?
Thanks a lot!
I have a problem with the Binomial Class in Colt. It usually works
fine. However, with small probabilities, it does not work anymore (it
always returns 0).
e.g.
int s = Binomial.staticNextInt(11,0.00009);
According to the distribution function, the probability of having
excactly one succes is about 0.001 (so it should return a 1 in about
a thousand cases).
However, it never returns anything other than 0, even if I run it
millions of times.
When I increase the p value 10 fold (to 0.0009), it works fine.
Might there be a precision bug?
Also, the official COLT email list does not seem to work. Hoschke
himself (the author of COLT) does not seem to reply to emails.
Can anybody help?
Thanks a lot!