Struct sir_ddft::SIRParameters
source · pub struct SIRParameters {
pub infection_parameter: f64,
pub recovery_rate: f64,
pub mortality_rate: f64,
}
Expand description
Parameters for the most simplistic SIR model (ODE)
Fields§
§infection_parameter: f64
Infection parameter
Note: In the SIR model this parameter is the effective contact rate (ceff) (i.e. has the dimension of an inverse time), while in the 1D and 2D models this parameter (c) has a dimension of length per time (1D) or area per time (2D) respectively.
recovery_rate: f64
Recovery rate (i.e. rate at which infected transition to the recovered population)
mortality_rate: f64
Mortality rate (i.e. rate at which infected decrease without a transition to the recovered population)
Implementations§
source§impl SIRParameters
impl SIRParameters
Trait Implementations§
source§impl Clone for SIRParameters
impl Clone for SIRParameters
source§fn clone(&self) -> SIRParameters
fn clone(&self) -> SIRParameters
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 moreAuto Trait Implementations§
impl Freeze for SIRParameters
impl RefUnwindSafe for SIRParameters
impl Send for SIRParameters
impl Sync for SIRParameters
impl Unpin for SIRParameters
impl UnwindSafe for SIRParameters
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