Parameters
Double[] p
An array of nonnegative ratios: this array does not need to be normalized as this is often impossible using floating point arithmetic.
int n
The number of trials.
The distribution is parameterized by a vector of ratios: in other words, the parameter does not have to be normalized and sum to 1. The reason is that some vectors can't be exactly normalized to sum to 1 in floating point representation.
Double[] pAn array of nonnegative ratios: this array does not need to be normalized as this is often impossible using floating point arithmetic.
int nThe number of trials.
Double[] pAn array of nonnegative ratios: this array does not need to be normalized as this is often impossible using floating point arithmetic.
int nThe number of trials.
Random randomSourceThe random number generator which is used to draw random samples.
IEnumerable<double> pAn array of nonnegative ratios: this array does not need to be normalized as this is often impossible using floating point arithmetic.
int nThe number of trials.
boolIf any of the probabilities are negative returns false ,
if the sum of parameters is 0.0, or if the number of trials is negative; otherwise true.
Random rndThe random number generator to use.
Double[] pAn array of nonnegative ratios: this array does not need to be normalized as this is often impossible using floating point arithmetic.
int nThe number of trials.
Int32[]the counts for each of the different possible values.
Random rndThe random number generator to use.
Double[] pAn array of nonnegative ratios: this array does not need to be normalized as this is often impossible using floating point arithmetic.
int nThe number of variables needed.
IEnumerable<Int32[]>a sequence of counts for each of the different possible values.
Int32[] xNon-negative integers x1,..., xk
doubleThe probability mass at location x.
Int32[] xNon-negative integers x1,..., xk
doubleThe log probability mass at location x.
Int32[]the counts for each of the different possible values.
IEnumerable<Int32[]>a sequence of counts for each of the different possible values.
stringa string representation of the distribution.