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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 Freeze for Continuous
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