[][src]Enum sim::input_modeling::random_variable::RandomVariable

pub enum RandomVariable {
    Beta {
        alpha: f64,
        beta: f64,
    },
    Exp {
        lambda: f64,
    },
    Gamma {
        shape: f64,
        scale: f64,
    },
    LogNormal {
        mu: f64,
        sigma: f64,
    },
    Normal {
        mean: f64,
        std_dev: f64,
    },
    Triangular {
        min: f64,
        max: f64,
        mode: f64,
    },
    Uniform {
        min: f64,
        max: f64,
    },
    Weibull {
        shape: f64,
        scale: f64,
    },
    Bernoulli {
        p: f64,
    },
    Geometric {
        p: f64,
    },
    Poisson {
        lambda: f64,
    },
    WeightedIndex {
        weights: Vec<u64>,
    },
}

Variants

Beta

Fields of Beta

alpha: f64beta: f64
Exp

Fields of Exp

lambda: f64
Gamma

Fields of Gamma

shape: f64scale: f64
LogNormal

Fields of LogNormal

mu: f64sigma: f64
Normal

Fields of Normal

mean: f64std_dev: f64
Triangular

Fields of Triangular

min: f64max: f64mode: f64
Uniform

Fields of Uniform

min: f64max: f64
Weibull

Fields of Weibull

shape: f64scale: f64
Bernoulli

Fields of Bernoulli

p: f64
Geometric

Fields of Geometric

p: f64
Poisson

Fields of Poisson

lambda: f64
WeightedIndex

Fields of WeightedIndex

weights: Vec<u64>

Implementations

impl RandomVariable[src]

pub fn random_variate(&mut self, uniform_rng: &mut UniformRNG) -> f64[src]

Trait Implementations

impl Clone for RandomVariable[src]

impl Debug for RandomVariable[src]

impl<'de> Deserialize<'de> for RandomVariable[src]

impl Serialize for RandomVariable[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,