pub struct Sir {
pub times: Vec<f64>,
pub no_s: Vec<usize>,
pub no_i: Vec<usize>,
pub no_r: Vec<usize>,
}Expand description
Result of a single SIR simulation run.
All four vectors have the same length: one entry for the initial state plus one entry per recorded state transition.
Fields§
§times: Vec<f64>Cumulative event times. times[0] == 0.0; strictly increasing.
no_s: Vec<usize>Number of susceptible individuals at each recorded time.
no_i: Vec<usize>Number of infected individuals at each recorded time.
no_r: Vec<usize>Number of recovered individuals at each recorded time.
Trait Implementations§
impl StructuralPartialEq for Sir
Auto Trait Implementations§
impl Freeze for Sir
impl RefUnwindSafe for Sir
impl Send for Sir
impl Sync for Sir
impl Unpin for Sir
impl UnsafeUnpin for Sir
impl UnwindSafe for Sir
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