rdist: Random numbers from distribution

Description Usage Arguments Value Author(s)

View source: R/rdist_function.R

Description

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.

Usage

1
rdist(n, x.vec, y.vec)

Arguments

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

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.