RAND_NORMAL-cash-gen: Generate random values

RAND_NORMAL$genR Documentation

Generate random values

Description

This function generates random values from the random variable.

Usage

RAND_NORMAL$gen(n, mu = NULL, sigma = NULL)

Arguments

n

Integer. Number of observations.

mu

Numeric. If it is provided and has length n, values will be used in each realization.

sigma

Numeric. If it is provided and has length n, values will be used in each realization.

Value

A vector of numeric values.

See Also

stats::rnorm()

Examples


test <- rand_normal(mu = 1, sigma = 2)
test$gen(10)

test$gen(3, mu = c(0,1,2), sigma = c(1,2,4))

TengMCing/visage documentation built on Aug. 28, 2024, 3:27 p.m.