A more 'idiomatically elixir' implementation of The Walker Alias Method. Uses the WeightedRandom.Backend behaviour
The original algorithm is described in detail on wikipedia.
A more 'idiomatically elixir' implementation of The Walker Alias Method. Uses the WeightedRandom.Backend behaviour
The original algorithm is described in detail on wikipedia.