Struct ode_solvers::controller::Controller
source · [−]pub struct Controller { /* private fields */ }
Expand description
Used for adaptive step size control
Implementations
sourceimpl Controller
impl Controller
sourcepub fn new(
alpha: f64,
beta: f64,
fac_max: f64,
fac_min: f64,
h_max: f64,
safety_factor: f64,
posneg: f64
) -> Controller
pub fn new(
alpha: f64,
beta: f64,
fac_max: f64,
fac_min: f64,
h_max: f64,
safety_factor: f64,
posneg: f64
) -> Controller
Creates a controller responsible for adaptive step size control.
Arguments
alpha
- α coefficient of the PI controllerbeta
- β coefficient of the PI controllerfac_max
- Maximum factor between two successive stepsfac_min
- Minimum factor between two successive stepsh_max
- Maximum step sizesafety_factor
- Safety factor of the PI controller
Auto Trait Implementations
impl RefUnwindSafe for Controller
impl Send for Controller
impl Sync for Controller
impl Unpin for Controller
impl UnwindSafe for Controller
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
sourceimpl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
sourcefn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
sourcefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
sourcefn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
sourcefn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.