aliasmethod
Implementation of Walker's Alias method by Rust.
The algorithm is principally useful when you need to random sampling with replacement by O(1)
.
Example
use
let weights = vec!;
match new_alias_table
Implementation of Walker's Alias method by Rust.
The algorithm is principally useful when you need to random sampling with replacement by O(1)
.
use
let weights = vec!;
match new_alias_table