Skip to contents

Returns a LOGNORMAL distribution object that produce random numbers from a log normal distribution using the rlnorm function

Usage

new_LOGNORMAL(p_meanlog, p_sdlog, p_dimnames = "rvar")

Arguments

p_meanlog

mean of the distribution on the log scale

p_sdlog

A numeric that represents the standard deviation on the log scale

p_dimnames

A character that represents the name of the dimension

Value

An object of class DISTRIBUTION, LOGNORMAL

Author

John J. Aponte

Examples

myDistr <- new_LOGNORMAL(0,1)
myDistr$rfunc(10)
#>         rvar
#> 1  2.0493543
#> 2  1.1410058
#> 3  0.1547532
#> 4  0.3982548
#> 5  3.3335205
#> 6  1.3063900
#> 7  0.1652559
#> 8  0.2681154
#> 9  0.7877722
#> 10 0.3188200