Navigation

Operators and Keywords

Function List:

C++ API

: binornd (n, p)
: binornd (n, p, r)
: binornd (n, p, r, c, …)
: binornd (n, p, [sz])

Return a matrix of random samples from the binomial distribution with parameters n and p, where n is the number of trials and p is the probability of success.

When called with a single size argument, return a square matrix with the dimension specified. When called with more than one scalar argument the first two arguments are taken as the number of rows and columns and any further arguments specify additional matrix dimensions. The size may also be specified with a vector of dimensions sz.

If no size arguments are given then the result matrix is the common size of n and p.

Package: octave