Learn R Programming

convdistr (version 1.6.1)

NORMAL: Factory for a NORMAL distribution object

Description

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")

Value

An object of class DISTRIBUTION, NORMAL

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

Author

John J. Aponte

Examples

Run this code
myDistr <- new_NORMAL(0,1)
myDistr$rfunc(10)

Run the code above in your browser using DataLab