Description Usage Arguments Details Value
what does the function do: implements sampling from a continuous random variable.
1 |
n |
the number of samples |
pdf |
a function that is the pdf of the random variable that you wish to sample from |
lb |
a numeric that is the lower bound of the random variable you wish to sample from |
ub |
a numeric that is the upper bound of the random variable you wish to sample from m, so P(a <= X <= b) = 1. |
c |
a numeric that is such that f(x) <= C for all values of x |
what does the function do: implements sampling from a continuous random variable.
a random sample of size n from the rv with pdf provided to the function, using rejection sampling
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.