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

pub enum ContinuousRandomVariable {
    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,
    },
}

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

Implementations

impl ContinuousRandomVariable[src]

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

The generation of random variates drives stochastic behaviors during simulation execution. This function requires the random number generator of the simulation, and produces a f64 random variate.

Trait Implementations

impl Clone for ContinuousRandomVariable[src]

impl Debug for ContinuousRandomVariable[src]

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

impl Serialize for ContinuousRandomVariable[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>,