ohliumliu / gsl-playground

GNU General Public License v3.0
0 stars 0 forks source link

gsl_ran_beta #2

Open ohliumliu opened 8 years ago

ohliumliu commented 8 years ago

http://savannah.gnu.org/bugs/?47646

ohliumliu commented 8 years ago
ohliumliu commented 8 years ago

tests: The result should be Bernoulli with p=0.5 when a and b are small.

ohliumliu commented 8 years ago

numpy fixed this problem around March 2015 https://github.com/numpy/numpy/pull/5858 It was related to a Dirichlett distribution bug that is still open. https://github.com/numpy/numpy/issues/5851

The purpose of while loop is not clear to me

In terms of test, numpy code only check if there is nan generated. See numpy #5858 above.