geornd
Geometric random numbers
Description
generates an array of random numbers, where r = geornd(p,sz1,...,szN)sz1,...,szN indicates the
size of each dimension.
generates an array of random numbers, where vector r = geornd(p,sz)sz specifies
size(r).
The geometric distribution is useful for modeling the number of failures before one
success in a series of independent trials, where each trial results in either success or
failure, and the probability of success in any individual trial is the constant
p.
Examples
Input Arguments
Output Arguments
Alternative Functionality
georndis a function specific to the geometric distribution. Statistics and Machine Learning Toolbox™ also offers the generic functionrandom, which supports various probability distributions. To userandom, specify the probability distribution name and its parameters. Note that the distribution-specific functiongeorndis faster than the generic functionrandom.To generate random numbers interactively, use
randtool, a user interface for random number generation.
Extended Capabilities
Version History
Introduced before R2006a