3 ms·
I was hoping to see an implementation the alias method [1] for sampling from discrete distributions! Nonetheless very cool. [1] http://en.wikipedia.org/wiki/Al
by rawnlq 12y ago
I was hoping to see an implementation the alias method [1] for sampling from discrete distributions! Nonetheless very cool.
[1] http://en.wikipedia.org/wiki/Alias_method http://en.wikipedia.org/wiki/Alias_method or http://www.keithschwarz.com/darts-dice-coins/ http://www.keithschwarz.com/darts-dice-coins/