Skip to content
Prev 17386 / 63421 Next

efficiency of sample() with prob.

I did not have time to do a thorough test. I was simply reporting what
I had done so any implied dishonesty is unfair to me.
I agree that Walker's method may be slow at some cases but there is
nothing to brag about R's current method either. The bottom line is: a
bisection method will be uniformly better than the linear search
method that R uses right now. This does not qualify as 'substantial
speed gain' though.

Cheers,
Bo