5 points · by tectonic · 13y ago · 4 comments
Maybe my math is a bit rusty, but is this really O(n)? Why is that?
GitHub - cantino/walker_method: A Ruby implementation of Walker's Alias Method for quickly sampling from an array with a given probability distribution
A Ruby implementation of Walker's Alias Method for quickly sampling from an array with a given probability distribution - cantino/walker_method
GitHub