diff options
author | Yawning Angel <yawning@schwanenlied.me> | 2014-06-19 06:29:12 +0000 |
---|---|---|
committer | Yawning Angel <yawning@schwanenlied.me> | 2014-06-19 06:29:12 +0000 |
commit | 5abad1571c7d0869e29d55ca01df83fef8cd4606 (patch) | |
tree | f6bb184672a435f98b5c7c9713aaacb0d37c5ce0 /ntor/ntor_test.go | |
parent | 6245391c93adf7b9617888d9d9ca8b12518cc52a (diff) |
Use Vose's Alias Method to sample the weighted distribution.
The weight generation code also was cleaned up (and now can support
generating distributions that look like what ScrambleSuit does as
a compile time change).
Per: http://www.keithschwarz.com/darts-dice-coins/
Diffstat (limited to 'ntor/ntor_test.go')
0 files changed, 0 insertions, 0 deletions