I totally forgot that Java doesn't detect overflow conditions in integral types, and pays the price. Ok, the price wasn't that high. It took me 0.00001 secs to realize that there's overflow in computations when I saw the negative probabilities :)
Read more at mindprod.com/jgloss/ove...
No comments:
Post a Comment