discreteFromMap
Usage
discreteFromMap(weights: Map<a,Double>) → DiscreteDist<a>
Description
Construct a discrete distribution from a map of values to weights.
discreteFromMapdiscreteFromMap(weights: Map<a,Double>) → DiscreteDist<a>
Construct a discrete distribution from a map of values to weights.