WeightedRandom.Backend.WalkerAlias (weighted_random v1.0.0-rc.2)

Copy Markdown View Source

A more 'idiomatically elixir' implementation of The Walker Alias Method. Uses the WeightedRandom.Backend behaviour

The original algorithm is described in detail on wikipedia.