Represents a discrete distribution which supports sampling value values(i) with probability
proportional to unnormalizedProbabilities(i). Construction is O(n) time and sampling is O(1)
time. Uses the alias method (see links at http://en.wikipedia.org/wiki/Alias_method).
Represents a discrete distribution which supports sampling value values(i) with probability proportional to unnormalizedProbabilities(i). Construction is O(n) time and sampling is O(1) time. Uses the alias method (see links at http://en.wikipedia.org/wiki/Alias_method).