Stixbox Function rgeom - Random numbers from the geometric distribution
Calling Sequence
- x=rgeom(n,p)
Parameters
- n
: positive integer or vector [lig,col] of integers
- p
: probability
- x
: n-vector of random numbers chosen from geometric distribution
Description
Random numbers from the geometric distribution P(X=k)=p(1-p)^k