pub struct LagSchemaConfig {
pub mu: f64,
pub sigma: f64,
pub min_hours: Option<f64>,
pub max_hours: Option<f64>,
}Expand description
Schema config for a lag distribution.
Fields§
§mu: f64Log-scale mean (for log-normal)
sigma: f64Log-scale standard deviation (for log-normal)
min_hours: Option<f64>Minimum lag in hours
max_hours: Option<f64>Maximum lag in hours
Implementations§
Source§impl LagSchemaConfig
impl LagSchemaConfig
Sourcepub fn to_distribution(&self) -> LagDistribution
pub fn to_distribution(&self) -> LagDistribution
Convert to LagDistribution.
Trait Implementations§
Source§impl Clone for LagSchemaConfig
impl Clone for LagSchemaConfig
Source§fn clone(&self) -> LagSchemaConfig
fn clone(&self) -> LagSchemaConfig
Returns a duplicate 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 LagSchemaConfig
impl Debug for LagSchemaConfig
Source§impl<'de> Deserialize<'de> for LagSchemaConfig
impl<'de> Deserialize<'de> for LagSchemaConfig
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 LagSchemaConfig
impl RefUnwindSafe for LagSchemaConfig
impl Send for LagSchemaConfig
impl Sync for LagSchemaConfig
impl Unpin for LagSchemaConfig
impl UnwindSafe for LagSchemaConfig
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