Skip to contents

Returns an EXPONENTIAL distribution object that produce random numbers from an exponential distribution using the rexp function

Usage

new_EXPONENTIAL(p_rate, p_dimnames = "rvar")

Arguments

p_rate

A numeric that represents the rate of events

p_dimnames

A character that represents the name of the dimension

Value

An object of class DISTRIBUTION, EXPONENTIAL

Author

John J. Aponte

Examples

myDistr <- new_EXPONENTIAL(5)
myDistr$rfunc(10)
#>          rvar
#> 1  0.52285312
#> 2  0.24930924
#> 3  0.35302189
#> 4  0.07629034
#> 5  0.07008340
#> 6  0.02720180
#> 7  0.24830646
#> 8  0.06013756
#> 9  0.12583848
#> 10 0.44297558