### Function Reference: `loglrnd`

statistics: r = loglrnd (mu, sigma)
statistics: r = loglrnd (mu, sigma, rows)
statistics: r = loglrnd (mu, sigma, rows, cols, …)
statistics: r = loglrnd (mu, sigma, [sz])

Random arrays from the loglogistic distribution.

`r = loglrnd (mu, sigma)` returns an array of random numbers chosen from the loglogistic distribution with mean parameter mu and scale parameter sigma. The size of r is the common size of mu and sigma. A scalar input functions as a constant matrix of the same size as the other inputs.

Both parameters must be positive reals, otherwise `NaN` is returned.

When called with mu single size argument, `loglrnd` returns mu square matrix with the dimension specified. When called with more than one scalar argument, the first two arguments are taken as the number of rows and columns and any further arguments specify additional matrix dimensions. The size may also be specified with mu row vector of dimensions, sz.

Further information about the loglogistic distribution can be found at https://en.wikipedia.org/wiki/Log-logistic_distribution

OCTAVE/MATLAB use an alternative parameterization given by the pair μ, σ, i.e. mu and sigma, in analogy with the logistic distribution. Their relation to the α and b parameters used in Wikipedia are given below:

- `mu = log (a)`
- `sigma = 1 / a`

See also: loglcdf, loglinv, loglpdf, loglfit, logllike, loglstat

Source Code: loglrnd