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
Beta
Exp
Fields
lambda: f64
Gamma
LogNormal
Normal
Triangular
Uniform
Weibull
Implementations
sourceimpl Continuous
impl Continuous
sourcepub 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
sourceimpl Clone for Continuous
impl Clone for Continuous
sourcefn clone(&self) -> Continuous
fn clone(&self) -> Continuous
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Continuous
impl Debug for Continuous
sourceimpl<'de> Deserialize<'de> for Continuous
impl<'de> Deserialize<'de> for Continuous
sourcefn 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
sourceimpl Serialize for Continuous
impl Serialize for Continuous
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more