pub struct SEIRConfig {
pub sir: SIRConfig,
pub initial_exposed: f64,
pub sigma: f64,
}Expand description
Configuration for SEIR model (adds Exposed compartment).
Fields§
§sir: SIRConfigBase SIR configuration.
initial_exposed: f64Initial number of exposed (infected but not yet infectious).
sigma: f64Incubation rate (σ): 1 / incubation period.
Implementations§
Source§impl SEIRConfig
impl SEIRConfig
Sourcepub fn initial_susceptible(&self) -> f64
pub fn initial_susceptible(&self) -> f64
Calculate initial susceptible population (accounting for exposed).
Trait Implementations§
Source§impl Clone for SEIRConfig
impl Clone for SEIRConfig
Source§fn clone(&self) -> SEIRConfig
fn clone(&self) -> SEIRConfig
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 SEIRConfig
impl Debug for SEIRConfig
Source§impl Default for SEIRConfig
impl Default for SEIRConfig
Source§impl<'de> Deserialize<'de> for SEIRConfig
impl<'de> Deserialize<'de> for SEIRConfig
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 SEIRConfig
impl RefUnwindSafe for SEIRConfig
impl Send for SEIRConfig
impl Sync for SEIRConfig
impl Unpin for SEIRConfig
impl UnsafeUnpin for SEIRConfig
impl UnwindSafe for SEIRConfig
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