<< Reject Methods Reject Methods rjgamma >>

Stixbox >> Stixbox > Reject Methods > rjbinom

rjbinom

Random numbers from the binomial distribution (reject method)

Calling Sequence

x = rjbinom(num,n,p)

Parameters

num

positive integer or vector [lig,col] of integers

n

nonnegative integer

p

probability (scalar)

x

vector or matrix of random numbers chosen from binomial distribution B(n,p)

Description

Random numbers from the binomial distribution (reject method)

Adapted from Press, Teukolsky, Vetterling and Flannery, Numerical Recipes in C p.220

<< Reject Methods Reject Methods rjgamma >>