Skip to contents

Returns a NORMAL distribution object that produce random numbers from a normal distribution using the rnorm function

Usage

new_NORMAL(p_mean, p_sd, p_dimnames = "rvar")

Arguments

p_mean

A numeric that represents the mean value

p_sd

A numeric that represents the standard deviation

p_dimnames

A character that represents the name of the dimension

Value

An object of class DISTRIBUTION, NORMAL

Author

John J. Aponte

Examples

myDistr <- new_NORMAL(0,1)
myDistr$rfunc(10)
#>          rvar
#> 1  -0.8277689
#> 2   0.9443376
#> 3  -0.6396930
#> 4  -2.1762304
#> 5  -0.2171446
#> 6   0.5799148
#> 7   1.9571700
#> 8  -0.9526035
#> 9  -1.8673853
#> 10 -0.9676737