| rlnorm {FLCore} | R Documentation |
Method rlnorm
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-class, FLQuantPoint-class
Examples
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)
[Package
FLCore version 2.2
Index]