Trait std::rand::distributions::IndependentSample
[−]
[src]
pub trait IndependentSample<Support>: Sample<Support> {
fn ind_sample<R>(&self, &mut R) -> Support where R: Rng;
}
Unstable (
rand
): use rand
from crates.io
Sample
s 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>(&self, &mut R) -> Support where R: Rng
Unstable (
rand
): use rand
from crates.io
Generate a random value.
Implementors
impl<Sup> IndependentSample<Sup> for Range<Sup> where Sup: SampleRange
impl IndependentSample<f64> for Gamma
impl IndependentSample<f64> for GammaSmallShape
impl IndependentSample<f64> for GammaLargeShape
impl IndependentSample<f64> for ChiSquared
impl IndependentSample<f64> for FisherF
impl IndependentSample<f64> for StudentT
impl IndependentSample<f64> for Normal
impl IndependentSample<f64> for LogNormal
impl IndependentSample<f64> for Exp
impl<Sup> IndependentSample<Sup> for RandSample<Sup> where Sup: Rand
impl<'a, T> IndependentSample<T> for WeightedChoice<'a, T> where T: Clone