Skip to contents

Returns an POISSON distribution object that produce random numbers from a Poisson distribution using the rpois function

Usage

new_POISSON(p_lambda, p_dimnames = "rvar")

Arguments

p_lambda

A numeric that represents the expected number of events

p_dimnames

A character that represents the name of the dimension

Value

An object of class DISTRIBUTION, POISSON

Author

John J. Aponte

Examples

myDistr <- new_POISSON(5)
myDistr$rfunc(10)
#>    rvar
#> 1     7
#> 2     9
#> 3     4
#> 4     3
#> 5     5
#> 6     7
#> 7     1
#> 8     6
#> 9     3
#> 10    1