[−][src]Trait math::sample::Sample
Provided methods
pub fn sample_subset_without_replacement<'s: 'a>(
&'s self,
size: usize
) -> Result<O, String>[src]
&'s self,
size: usize
) -> Result<O, String>
samples size elements without replacement
size: the number of samples to be drawn
returns Err if size is larger than the population size
pub fn sample_with_replacement<'s: 'a>(
&'s self,
size: usize
) -> Result<O, String>[src]
&'s self,
size: usize
) -> Result<O, String>
Implementations on Foreign Types
impl<'a, E: Clone> Sample<'a, Iter<'a, E>, &'a E, Vec<E, Global>> for Vec<E> where
&'a E: Deref, [src]
Loading content...&'a E: Deref,
Implementors
impl<E, '_> Sample<'_, ContiguousIntegerSetIter<E>, E, OrderedIntegerSet<E>> for ContiguousIntegerSet<E> where
E: Integer + Copy + ToPrimitive, [src]
E: Integer + Copy + ToPrimitive,
impl<E, '_> Sample<'_, IntegerSetIter<E>, E, OrderedIntegerSet<E>> for OrderedIntegerSet<E> where
E: Integer + Copy + Sum + ToPrimitive, [src]
E: Integer + Copy + Sum + ToPrimitive,