[][src]Function aliasmethod::new_alias_table

pub fn new_alias_table(weights: &[f64]) -> Result<AliasTable, AliasMethodError>

Creates a new AliasTable struct.