Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: distribs
See also: ranpois INSPolKhin

Quantlet: rndgeom
Description: generates a vector or matrix of pseudo random variables with geometric distribution.

Reference(s):

Usage: y = rndgeom(n, m, rho)
Input:
n integer, number of rows
m integer, number of columns
rho scalar, parameter of geometric distribution
Output:
y n x m matrix, pseudo random numbers

Example:
library("xplore")
library("distribs")
randomize(100)
rndgeom(3, 2, 0.2)

Result:
Contents of y
 [1,]       14        1
 [2,]        7        6
 [3,]       12        1



Author: P. Mista, 20041111 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006