Description Usage Arguments Value
samples a give pdf of a random variable
1 | accept.reject(n, pdf, a, b, C)
|
n |
is the desired number of samples |
pdf |
is the pdf of the random variable that you wish to sample from |
a |
is the lower bound of the random variable |
b |
is the upper bound of the random variable |
C |
is the number that f(x) <= C for all x |
the samples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.