#[repr(C)]pub struct igraph_sir_t {
pub times: igraph_vector_t,
pub no_s: igraph_vector_int_t,
pub no_i: igraph_vector_int_t,
pub no_r: igraph_vector_int_t,
}Expand description
\struct igraph_sir_t \brief The result of one SIR model simulation.
Data structure to store the results of one simulation of the SIR (susceptible-infected-recovered) model on a graph.
It has the following members. They are all (real or integer) vectors, and they are of the same length.
\member times A vector, the times of the events are stored here. \member no_s An integer vector, the number of susceptibles in each time step is stored here. \member no_i An integer vector, the number of infected individuals at each time step, is stored here. \member no_r An integer vector, the number of recovered individuals is stored here at each time step.
Fields§
§times: igraph_vector_t§no_s: igraph_vector_int_t§no_i: igraph_vector_int_t§no_r: igraph_vector_int_tTrait Implementations§
Source§impl Clone for igraph_sir_t
impl Clone for igraph_sir_t
Source§fn clone(&self) -> igraph_sir_t
fn clone(&self) -> igraph_sir_t
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 moreAuto Trait Implementations§
impl Freeze for igraph_sir_t
impl RefUnwindSafe for igraph_sir_t
impl !Send for igraph_sir_t
impl !Sync for igraph_sir_t
impl Unpin for igraph_sir_t
impl UnwindSafe for igraph_sir_t
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