Statistics: loglrnd

### Function Reference: `loglrnd`

statistics: r = loglrnd (a, b)
statistics: r = loglrnd (a, b, rows)
statistics: r = loglrnd (a, b, rows, cols, …)
statistics: r = loglrnd (a, b, [sz])

Random arrays from the log-logistic distribution.

`r = loglrnd (a, b)` returns an array of random numbers chosen from the log-logistic distribution with scale parameter a and shape parameter b. The size of r is the common size of a and b. 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 a single size argument, `loglrnd` returns a 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 a row vector of dimensions, sz.

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

MATLAB compatibility: MATLAB uses an alternative parameterization given by the pair μ, s, i.e. mu and s, in analogy with the logistic distribution. Their relation to the a and b parameters is given below:

- `a = exp (mu)`
- `b = 1 / s`

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

Source Code: loglrnd