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
Auto Trait Implementations
impl RefUnwindSafe for SIRODEIVP
impl Send for SIRODEIVP
impl Sync for SIRODEIVP
impl Unpin for SIRODEIVP
impl UnwindSafe for SIRODEIVP
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,