Displaying 1 result from an estimated 1 matches for "finsum".
Did you mean:
binsum
2005 Feb 11
1
Re: [R-SIG-Mac] Bug running pbinom() in R-GUI?
...(i= 1; i <= n; i++) {
#ifndef MATHLIB_STANDALONE
/* for now, at least allow this:*/
- R_CheckUserInterrupt();
+ if ((i&1023)==1)
+ R_CheckUserInterrupt();
#endif
if (p1 <= 1 && term / eps <= finsum)
break;
after this patch has been applied I get in the GUI:
> system.time(pbinom(80, 1e5, 806/1e6))
[1] 0.02 0.00 0.08 0.00 0.00
Cheers,
Simon