| Line 14... |
Line 14... |
| 14 |
\details{
|
14 |
\details{
|
| 15 |
A user-specified uniform RNG is called from entry points in
|
15 |
A user-specified uniform RNG is called from entry points in
|
| 16 |
dynamically-loaded compiled code. The user must supply the entry point
|
16 |
dynamically-loaded compiled code. The user must supply the entry point
|
| 17 |
\code{user_unif_rand}, which takes no arguments and returns a
|
17 |
\code{user_unif_rand}, which takes no arguments and returns a
|
| 18 |
\emph{pointer to} a double. The example below will show the general
|
18 |
\emph{pointer to} a double. The example below will show the general
|
| 19 |
pattern.
|
19 |
pattern. The generator should have at least 25 bits of precision.
|
| 20 |
|
20 |
|
| 21 |
Optionally, the user can supply the entry point \code{user_unif_init},
|
21 |
Optionally, the user can supply the entry point \code{user_unif_init},
|
| 22 |
which is called with an \code{unsigned int} argument when
|
22 |
which is called with an \code{unsigned int} argument when
|
| 23 |
\code{\link{RNGkind}} (or \code{set.seed}) is called, and is intended
|
23 |
\code{\link{RNGkind}} (or \code{set.seed}) is called, and is intended
|
| 24 |
to be used to initialize the user's RNG code. The argument is intended
|
24 |
to be used to initialize the user's RNG code. The argument is intended
|