pub struct SIRState {
pub susceptible: f64,
pub infected: f64,
pub recovered: f64,
pub time: f64,
pub rt: f64,
}Expand description
State of SIR model at a point in time.
Fields§
§susceptible: f64Number of susceptible individuals.
infected: f64Number of infected individuals.
recovered: f64Number of recovered individuals.
time: f64Current time.
rt: f64Effective reproduction number Rt.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SIRState
impl<'de> Deserialize<'de> for SIRState
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 SIRState
impl RefUnwindSafe for SIRState
impl Send for SIRState
impl Sync for SIRState
impl Unpin for SIRState
impl UnsafeUnpin for SIRState
impl UnwindSafe for SIRState
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