transform_distr: Transform a distribution with a function

Description Usage Arguments Value Author(s)

View source: R/transform_distr_function.R

Description

The PDF of an independent variable x is transformed into the PDF of a dependent variable y, based on their relationship y=f\(x\)

Usage

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
)

Arguments

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

Value

Vector of random numbers

Author(s)

Nikolai Knapp, nikolai.knapp@ufz.de


niknap/ScalingFunctions documentation built on May 22, 2021, 6:43 a.m.