Struct sir_ddft::SIRODEIVP[][src]

pub struct SIRODEIVP { /* fields omitted */ }

Initial value problem for the SIR model

Implementations

impl SIRODEIVP[src]

pub fn new(param: SIRParameters, state: SIRState) -> SIRODEIVP[src]

Create a new IVP of the SIR model with a given set of parameters and an initial state

pub fn add_time(&mut self, time: f64)[src]

Increase integration time

pub fn get_result(&self) -> (f64, &SIRState)[src]

Get current time and state

Trait Implementations

impl<S> ODEIVP<S> for SIRODEIVP[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.