| halfnorm_acc | R Documentation |
halfnorm_acc calculates the acceptance rate of half-normal rejection sampling for the truncation interval (a,b).
halfnorm_acc(a, b)
a |
lower bound for truncation. |
b |
upper bound for truncation. |
set.seed(1203)
halfnorm_acc(1,2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.