Function aliasmethod::new_alias_table [] [src]

pub fn new_alias_table(weights: &Vec<f64>) -> Result<AliasTable, &'static str>

Creates a new AliasTable struct.