Displaying 5 results from an estimated 5 matches for "exp_rand".
2002 Nov 24
1
unif_rand() and exp_rand()
Dear R-users:
Recently I found my simulation run into an apparently infinite loop.
After a few days of tracing and chasing, I believe it is caused by
the built-in unif_rand() and exp_rand() functions: unif_rand() can
produce a value of 0 which causes the following part of exp_rand()
running into an infinity loop
u = unif_rand();
for (;;) {
u += u;
if (u > 1.0)
break;
a += q[0];
}
The way I use R is slightly non-standard: I run the program in
R 1....
2019 Mar 22
1
Status of R_unif_index
Dear List,
section "6.3 Random number generation" of WRE [1] lists unif_rand(),
norm_rand() and exp_rand() as the interface to R's RNG. Now
R_ext/Random.h also has
double R_unif_index(double);
Can this be also treated as an official API function that may be called
from a package?
Thanks
Ralf
[1]
https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Random-numbers
--
Ralf Stubner
S...
2010 Jan 28
1
Problem with R math library.
Hello.
I've been working on my OCaml-R binding, and I quite pleased to see that
it is functional, though far from being perfect or polished. You can
find the gitweb webpage and the interface documentation at
http://yziquel.homelinux.org/gitweb/?p=ocaml-r.git;a=tree
http://yziquel.homelinux.org/topos/api/ocaml-r/index.html
I'm having unexpected trouble with the math library, though.
2003 Jan 10
6
R-1.6.2 is released
...ata frames and matrices treated the
matrices as vectors. (PR#2266)
o stripchart(method="stack") was not handling missing values. (PR#2018)
o Arithmetic functions such as log() lost the object bit from
classed objects if coercion was needed. (PR#2315)
o exp_rand would go into an infinite loop if unif_rand returned 0.
o formatC(x, format="fg") could return exponential format if
rounding pushed x over a positive power of 10. (PR#2299)
o attr(x, foo) used partial matching for `foo' (even though not
documented to do...
2003 Jan 10
6
R-1.6.2 is released
...ata frames and matrices treated the
matrices as vectors. (PR#2266)
o stripchart(method="stack") was not handling missing values. (PR#2018)
o Arithmetic functions such as log() lost the object bit from
classed objects if coercion was needed. (PR#2315)
o exp_rand would go into an infinite loop if unif_rand returned 0.
o formatC(x, format="fg") could return exponential format if
rounding pushed x over a positive power of 10. (PR#2299)
o attr(x, foo) used partial matching for `foo' (even though not
documented to do...