Liking cljdoc? Tell your friends :D

randy.core


*shuffle-strategy-pred*clj/s

Function deciding on strategy for sample-without-replacement.

Function deciding on strategy for sample-without-replacement.
raw docstring

alias-method-samplerclj/s

(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.
raw docstring

default-rngclj/s


sampleclj/s

(sample coll)
(sample rng coll)

sample-without-replacementclj/s

(sample-without-replacement n coll)
(sample-without-replacement rng n coll)

shuffleclj/s

(shuffle coll)
(shuffle rng coll)

weighted-sampleclj/s

(weighted-sample m)
(weighted-sample rng m)

weightings->probabilitiesclj/s

(weightings->probabilities ws)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close