Description Usage Arguments Value
View source: R/modular_functions.R
ars
calculates a given number of n
random samples
from a given density f
, initialized at the given abscissae
x_abs
.
1 |
n |
The number of samples to return |
x_abs |
A |
f |
A function representing the target sampling distribution. |
f_params |
A |
supp |
The support of |
A named list
containing vals
: the collection of n
samples, k
: the count of abscissae added, i
: the total number
of samples attempted, and m
: the amount of rejected samples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.