Lognormal random numbers
generates an array of lognormal random numbers, where r
= lognrnd(mu
,sigma
,sz1,...,szN
)sz1,...,szN
indicates the size of each dimension.
lognrnd
is a function specific to lognormal distribution.
Statistics and Machine Learning Toolbox™ also offers the generic function random
, which supports various probability distributions. To use
random
, create a LognormalDistribution
probability distribution object and pass the object as
an input argument or specify the probability distribution name and its parameters. Note
that the distribution-specific function lognrnd
is faster than
the generic function random
.
To generate random numbers interactively, use randtool
, a user interface for random number generation.
[1] Marsaglia, G., and W. W. Tsang. “A Fast, Easily Implemented Method for Sampling from Decreasing or Symmetric Unimodal Density Functions.” SIAM Journal on Scientific and Statistical Computing. Vol. 5, Number 2, 1984, pp. 349–359.
[2] Evans, M., N. Hastings, and B. Peacock. Statistical Distributions. 2nd ed., Hoboken, NJ: John Wiley & Sons, Inc., 1993.
logncdf
| lognfit
| logninv
| lognlike
| LognormalDistribution
| lognpdf
| lognstat
| normrnd
| random