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