[−][src]Trait math::sample::Sample
Provided methods
fn sample_subset_without_replacement<'s: 'a>(
&'s self,
size: usize
) -> Result<O, String>
&'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
fn sample_with_replacement<'s: 'a>(&'s self, size: usize) -> Result<O, String>
Implementations on Foreign Types
impl<'a, E: Clone> Sample<'a, Iter<'a, E>, &'a E, Vec<E>> 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,