Function deciding on strategy for sample-without-replacement.
Function deciding on strategy for sample-without-replacement.
(alias-method-sampler weightings-map)
(alias-method-sampler values weightings)
Performs the initialisation for Vose's Alias Method and returns a function that generates values based on the weightings. The function returns indexes when values is null.
Performs the initialisation for Vose's Alias Method and returns a function that generates values based on the weightings. The function returns indexes when values is null.
(sample coll)
(sample rng coll)
(sample-without-replacement n coll)
(sample-without-replacement rng n coll)
(shuffle coll)
(shuffle rng coll)
(weighted-sample m)
(weighted-sample rng m)
(weightings->probabilities ws)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close