Function Reference: geornd

statistics: r = geornd (ps)
statistics: r = geornd (ps, rows)
statistics: r = geornd (ps, rows, cols, …)
statistics: r = geornd (ps, [sz])

Random arrays from the geometric distribution.

r = geornd (ps) returns an array of random numbers chosen from the Birnbaum-Saunders distribution with parameter ps. The size of r is the size of ps.

When called with a single size argument, return 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 vector of dimensions sz.

The geometric distribution models the number of failures (x) of a Bernoulli trial with probability ps before the first success.

See also: geocdf, geoinv, geopdf, geostat

Source Code: geornd