Enum sim::input_modeling::random_variable::Continuous
source · 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§
Implementations§
source§impl Continuous
impl Continuous
sourcepub fn random_variate(
&mut self,
uniform_rng: DynRng
) -> Result<f64, SimulationError>
pub fn random_variate( &mut self, uniform_rng: DynRng ) -> 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§
source§impl Clone for Continuous
impl Clone for Continuous
source§fn clone(&self) -> Continuous
fn clone(&self) -> Continuous
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Continuous
impl Debug for Continuous
source§impl<'de> Deserialize<'de> for Continuous
impl<'de> Deserialize<'de> for Continuous
source§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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more