Enum sim::input_modeling::random_variable::Continuous [−][src]
pub enum Continuous { 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
Fields of Exp
lambda: f64
Implementations
pub fn random_variate(
&mut self,
uniform_rng: &mut UniformRNG
) -> Result<f64, SimulationError>
pub fn random_variate(
&mut self,
uniform_rng: &mut UniformRNG
) -> Result<f64, SimulationError>
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Continuous
impl Send for Continuous
impl Sync for Continuous
impl Unpin for Continuous
impl UnwindSafe for Continuous
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V