Description Usage Arguments Value Author(s)
View source: R/rdist_function.R
Random number generation from arbitrary distribution defined by a value vector x and a probability or frequency vector y. The function uses inverse transform sampling.
1 | rdist(n, x.vec, y.vec)
|
n |
Number of samples that should be drawn from the distribution |
x.vec |
Vector defining the values of the distribution |
y.vec |
Vector defining the probability density or frequencies of the x values |
Vector of random numbers
Nikolai Knapp, nikolai.knapp@ufz.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.