nbinomial_rnd

Syntax: nbinomial_rnd(n,p,x, y)

Description: The negative binomial distribution with n (the number of trials).If x,y are given , create a matrix with binomial values with the dimension x (rows) and y (columns).If only x is given, create a vector with binomial values of size "x"

Group: normal

Note:

Example:

nbinomial_rnd(10,0.2, 100) % creates a vector with size 100.nbinomial_rnd(20,0.2, 50,60) % filled  50x60 matrix.

Also see: poisson

Implemented in: LambdaNBINOMIAL_RND.java