Struct amadeus::SampleTotal [−][src]
pub struct SampleTotal { /* fields omitted */ }
Without replacement
Methods
impl SampleTotal
[src]
impl SampleTotal
pub fn new(total: usize, samples: usize) -> Self
[src]
pub fn new(total: usize, samples: usize) -> Self
Create a SampleTotal
that will provide a sample of size samples
of a population of size total
.
pub fn sample<R: Rng>(&mut self, rng: &mut R) -> bool
[src]
pub fn sample<R: Rng>(&mut self, rng: &mut R) -> bool
Returns whether or not to this value is in the sample
Trait Implementations
impl Clone for SampleTotal
[src]
impl Clone for SampleTotal
fn clone(&self) -> SampleTotal
[src]
fn clone(&self) -> SampleTotal
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for SampleTotal
[src]
impl Debug for SampleTotal
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Drop for SampleTotal
[src]
impl Drop for SampleTotal
Auto Trait Implementations
impl Send for SampleTotal
impl Send for SampleTotal
impl Sync for SampleTotal
impl Sync for SampleTotal