direct-sampler | R Documentation |
Basic and customized versions of the direct sampler.
direct_sampler_basic(n, w, g, N = 100, max_iter = 10000)
direct_sampler(
n,
w,
g,
tol = 1e-08,
N = 100,
fill_method = "small_rects",
priority_weight = 1/2
)
n |
Number of draws to generate. |
w |
A weight function object. |
g |
A base distribution object. |
N |
Number of knots to use in approximation for |
max_iter |
Maximum number of accept/reject attempts to try for each draw. |
tol |
Tolerance for step function approximation in customized sampler. |
fill_method |
Knot selection method for customized sampler. See
|
priority_weight |
TBD |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.