FUNCTION REFERENCE

evrnd

Extreme value (minimum gumbel) random numbers.

Extreme value (minimum gumbel) random numbers.

Syntax

R = evrnd(MU, SIGMA)

Syntax

R = evrnd(MU, SIGMA, m, n, ...)

Syntax

R = evrnd(MU, SIGMA, [m n ...])

Draws from the extreme value (minimum Gumbel) distribution with location MU (default 0) and scale SIGMA > 0 (default 1); this is the law of the minimum, cdf 1 - exp(-exp((x-MU)/SIGMA)). Without a size the result has the common size of the parameters; with one, non-scalar parameters must have that size. Invalid parameters give NaN.

Example

rng(0); evrnd(0, 1, 1, 3)

Differences from MATLAB: draws use the session's Mersenne Twister stream, so rng(seed) makes them reproducible; for a given seed the numbers follow the same distribution as MATLAB's but are not the same numbers.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.