Description Usage Arguments Details Value Author(s) References Examples
Method for rejection sampling for any univariate log-concave probability density function.
1 | ars(myfun, m, lower, upper)
|
myfun |
density the user wants to sample from |
m |
sample size |
lower |
value of the lower bound |
upper |
value of the upper bound |
The method is adaptive: as sampling proceeds, the rejection envelope and the squeezing function converge to the density function. The rejection envelope and squeezing function are piecewise exponential functions forming arcs between those points of contact. The technique is intended for situations where evaluation of the density is computationally expensive.
a sample of inputted length n from a density
Cindy Zhang, Sihan Chen, Sacha Mourier
Gilks, W. R, Wild, P. (1992) Adaptive Rejection Sampling for Gibbs Sampling, Applied Statistics 41:337-348
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.