[NumPy-Tickets] [NumPy] #1414: Possible mistake in distribution.c::rk_binomial_btpe

NumPy Trac numpy-tickets@scipy....
Fri Feb 26 04:12:10 CST 2010

#1414: Possible mistake in distribution.c::rk_binomial_btpe
 Reporter:  batz900       |       Owner:  somebody
     Type:  defect        |      Status:  new     
 Priority:  normal        |   Milestone:          
Component:  numpy.random  |     Version:  1.3.0   
 Keywords:                |  
 I believe there is a small type in rk_binomial_btpe in distribution.c.  On
 line 337 there is an else, but in the "Binomial Random Variate Generation"
 by Kachitvichyanukul And Schmeiser their Step 5.1 ends the if/else if
 block before the testing of the
 if(v > F) goto Step10;
 goto Step60;
 (basically, I believe the else enclosure should be deleted at the end of
 the Step50 section).
 Also I have a cleaner version written (without goto) if you're interested.

Ticket URL: <http://projects.scipy.org/numpy/ticket/1414>
NumPy <http://projects.scipy.org/numpy>
My example project

More information about the NumPy-Tickets mailing list