Description Usage Arguments Value Author(s)
View source: R/transform_distr_function.R
The PDF of an independent variable x is transformed into the PDF of a dependent variable y, based on their relationship y=f\(x\)
1 2 3 4 5 6 | transform_distr(
x.vec,
xy.func = function(x) { 1 * x },
xsdy.func = function(x) { 1 * x },
n.steps = 1000
)
|
x.vec |
Vector defining the values of the distribution |
n |
Number of samples that should be drawn from 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.