QuantizedDistribution

A quantized representation of a the probability distribution of some continuous function returning a value between 0 and 1.

Members

Functions

gt
Probability gt(V value)
Undocumented in source. Be warned that the author may not have intended to support it.
normalize
typeof(this) normalize()

Normalizes buckets so that they add up to 1.

Static functions

sample
typeof(this) sample(V delegate() fun, size_t numSamples)

Call fun a numSamples number of times, and return a distribution representing the result.

Variables

buckets
P[numSegments] buckets;

Represents the relative probability that the function will return a value in the represented interval.

maxValue
enum V maxValue;
Undocumented in source.
minValue
enum V minValue;
Undocumented in source.

Meta