Probability mass function is a function that gives the probability that a discrete random variable is exactly equal to some value.
If probabilities do not sum up to 1 or there is zero or negative probability.
NB: in the engine the sum is checked to be exactly one by using Decimal numbers.
Produces a list of samples from the probability mass function.
|Parameters:||data (int) – Number of samples|
|Returns:||Samples from PMF as a list|