API Reference Alias Method v0.1.0

Modules

Implementation of Walker's Alias method by Elixir. The algorithm is principally useful when you need to random sampling with replacement by O(1).

struct represents probability table and alias table generated by weights