Trait std::rand::distributions::Sample
[−]
[src]
pub trait Sample<Support> {
fn sample<R>(&mut self, rng: &mut R) -> Support where R: Rng;
}
Unstable (
rand
): use rand
from crates.io
Types that can be used to create a random instance of Support
.
Required Methods
fn sample<R>(&mut self, rng: &mut R) -> Support where R: Rng
Unstable (
rand
): use rand
from crates.io
Generate a random value of Support
, using rng
as the
source of randomness.
Implementors
impl<Sup> Sample<Sup> for Range<Sup> where Sup: SampleRange
impl Sample<f64> for Gamma
impl Sample<f64> for GammaSmallShape
impl Sample<f64> for GammaLargeShape
impl Sample<f64> for ChiSquared
impl Sample<f64> for FisherF
impl Sample<f64> for StudentT
impl Sample<f64> for Normal
impl Sample<f64> for LogNormal
impl Sample<f64> for Exp
impl<Sup> Sample<Sup> for RandSample<Sup> where Sup: Rand
impl<'a, T> Sample<T> for WeightedChoice<'a, T> where T: Clone