Enum sim::pandemic::State [−][src]
pub enum State { Sane((Event, Time)), Exposed((Event, Time)), Infectious((Event, Time)), Hospitalized((Event, Time)), Recovered(Time), Dead(Time), }
Variants
Recovered(Time)
Dead(Time)
Implementations
impl State
[src]
impl State
[src]const T_INF: f64
[src]
const T_INC: f64
[src]
const R_0: f64
[src]
const E_RATIO: f64
[src]
const I_RATIO: f64
[src]
pub fn ini_infectious_ratio() -> f64
[src]
pub fn ini_exposed_ratio() -> f64
[src]
fn new(p_hosp: f64, p_death: f64) -> Self
[src]
fn get_time_exp(lambda: f64, rng: &mut XorShiftRng) -> Duration
[src]
fn get_time_normal(mu: f64, sigma: f64, rng: &mut XorShiftRng) -> Duration
[src]
fn is_sane(&self) -> bool
[src]
fn is_exposed(&self) -> bool
[src]
fn is_infectious(&self) -> bool
[src]
fn is_recovered(&self) -> bool
[src]
fn is_dead(&self) -> bool
[src]
pub fn get_time(&self) -> Option<Time>
[src]
pub fn get_event_time(&self) -> Option<AnyTime>
[src]
pub fn next_default(
self,
default: AnyTime,
rng: &mut XorShiftRng
) -> Option<Self>
[src]
self,
default: AnyTime,
rng: &mut XorShiftRng
) -> Option<Self>
pub fn next(self, now: AnyTime, rng: &mut XorShiftRng) -> Option<Self>
[src]
pub fn start(
self,
now: AnyTime,
overlap: Duration,
rng: &mut XorShiftRng
) -> Result<Self>
[src]
self,
now: AnyTime,
overlap: Duration,
rng: &mut XorShiftRng
) -> Result<Self>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,