Description Usage Arguments Details Value Examples
Generate random numbers by rejection sampling
1 2 |
f |
[ |
n |
[ |
min |
[ |
max |
[ |
g |
[ |
rg |
[ |
g.factor |
[ |
If no instrumental distribution is specified, the uniform distribution is used.
The call g
(x) should return the probability of the realisation x for the instrumental distribution g
.
The choice of g.factor
should guarantee f
(x) < g.factor
* g
(x).
n
Random numbers from the function f
interpreted as probality density function on the interval (min
, max
).
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.