Trait rand::distributions::IndependentSample
[−]
[src]
pub trait IndependentSample<Support>: Sample<Support> {
fn ind_sample<R: Rng>(&self, &mut R) -> Support;
}Unstable (
rand): use rand from crates.io
Samples that do not require keeping track of state.
Since no state is recorded, each sample is (statistically)
independent of all others, assuming the Rng used has this
property.
Required Methods
fn ind_sample<R: Rng>(&self, &mut R) -> Support
Unstable (
rand): use rand from crates.io
Generate a random value.
Implementors
impl<Sup: SampleRange> IndependentSample<Sup> for Range<Sup>impl IndependentSample<f64> for Gammaimpl IndependentSample<f64> for ChiSquaredimpl IndependentSample<f64> for FisherFimpl IndependentSample<f64> for StudentTimpl IndependentSample<f64> for Normalimpl IndependentSample<f64> for LogNormalimpl IndependentSample<f64> for Expimpl<Sup: Rand> IndependentSample<Sup> for RandSample<Sup>impl<'a, T: Clone> IndependentSample<T> for WeightedChoice<'a, T>