RAND_LOGNORMAL-cash-gen: Generate random values

RAND_LOGNORMAL$genR Documentation

Generate random values

Description

This function generates random values from the random variable.

Usage

RAND_LOGNORMAL$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::rlnorm()

Examples


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

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

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