Method | Description | |
---|---|---|
Sample ( |
Sample from the provided discrete probability distribution.
|
|
SampleBinaryDistribution ( double probability, |
Sample from a binary distribution with the specified probability split between state false and true.
|
|
SampleUniformDistribution ( int numberOfOutcomes, |
Sample from a set of possible outcomes with equal probability, i.e. a uniform discrete distribution.
|
public static Sample ( |
||
dist | The discrete distribution to sample from. | |
rng | Random number generator. | |
return | int |
public static SampleBinaryDistribution ( double probability, |
||
probability | double | A probability between 0..1 that describes the probbaility of sampling boolean true. |
rng | Random number generator. | |
return | bool |
public static SampleUniformDistribution ( int numberOfOutcomes, |
||
numberOfOutcomes | int | The number of possible outcomes. |
rng | Random number generator. | |
return | int |