return int |
A sample from the Bernoulli distribution. |
Random rnd |
The random number generator to use. |
double p |
The probability of generating a 1. |
The distribution will use the Random by default. Users can set the random number generator by using the RandomSource property.
The statistics classes will check all the incoming parameters whether they are in the allowed range. This might involve heavy computation. Optionally, by setting Control.CheckDistributionParameters to false, all parameter checks can be turned off.
return int |
A sample from the Bernoulli distribution. |
Random rnd |
The random number generator to use. |
double p |
The probability of generating a 1. |
return IEnumerable<int> |
a sequence of samples from the distribution. |
Random rnd |
The random number generator to use. |
double p |
The probability of generating a 1. |
return double
|
return int
|
return double
|
return int
|
return int
|
return int
|
return double
|
return Random
|
return double
|
return double
|
return double
|