(lspin wheel)
(lspin wheel spin-value)
Draw from a roulette wheel.
Draw from a roulette wheel.
(wheel weights individuals)
Return a roulette-wheel for a map of things and numerical weights. Input is:
Return a roulette-wheel for a map of things and numerical weights. Input is: - sequence weights for each individual (used for making upper limits) - sequence of individuals (will become values) Result is a sorted map with upper-limits of ranges within [0,1] that are used in the probability of selection for a given value. The lower limit of the first entry is 0.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close