Description Usage Arguments Value Examples
This function implements conditional variabel rejection sampling for rvs with bounded support x,y and which have have bounded pdf.
1 | twoDsample(f, N, lbx = -5000, ubx = 5000, lby = -5000, uby = 5000)
|
f |
the joint pdf that we are sampling from |
N |
the number of attempted samples. |
lbx |
lower bound of support x of f |
ubx |
upper bound of support x of f |
lby |
upper bound of support y of f |
uby |
upper bound of support y of f |
A vector containing samples from pdf
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.