Struct cap_rand::distributions::weighted::alias_method::WeightedIndex
source · pub struct WeightedIndex<W>where
W: Weight,{ /* private fields */ }
👎Deprecated since 0.8.0: moved to rand_distr crate
Implementations§
source§impl<W> WeightedIndex<W>where
W: Weight,
impl<W> WeightedIndex<W>where
W: Weight,
pub fn new(_weights: Vec<W, Global>) -> Result<WeightedIndex<W>, WeightedError>
👎Deprecated since 0.8.0: moved to rand_distr crate