rlnorm: Method rlnorm

Description Generic function Methods Author(s) See Also Examples

Description

Random generation for the log normal distribution whose logarithm has mean equal to meanlog and standard deviation equal to sdlog. meanlog and sdlog can be given as FLQuant objects. If both are given as FLQuant objects their dimensions must be the same. If either of these arguments are FLQuant objects, rlnorm returns an FLQuant.

Generic function

rlnorm(n,meanlog,sdlog)

Methods

signature(n=numeric,meanlog=FLQuant,sdlog=FLQuant) :

Generates random deviates for the log normal distribution. FLQuant arguments must have the same dimension. Returns an FLQuant object.

signature(n=numeric,meanlog=FLQuant,sdlog=numeric) :

Generates random deviates for the log normal distribution. Returns an FLQuant object.

signature(n=numeric,meanlog=numeric,sdlog=FLQuant) :

Generates random deviates for the log normal distribution. Returns an FLQuant object.

signature(n=numeric,meanlog=FLQuantPoint,sdlog=missing) :

Generates random deviates for the log normal distribution. Returns an FLQuant object.

Author(s)

The FLR Team

See Also

rlnorm, FLQuant, FLQuantPoint

Examples

1
2
3
out <- rlnorm(1000, meanlog=FLQuant(c(5,5,5,5,5)),sdlog=FLQuant(c(0,1,2,3,4)))
apply(log(out),2,sd)
apply(log(out),2,mean)

FLCore documentation built on May 2, 2019, 5:46 p.m.