pub struct IterationConf {
pub smoother: SmoothingArc,
pub absolute_tol: f64,
pub relative_tol: f64,
pub max_iterations: usize,
pub max_divergences: usize,
pub force_failure: bool,
}
Expand description
Defines a filter iteration configuration. Allows iterating on an OD solution until convergence criteria is met. The root mean squared of the prefit residuals ratios is used to assess convergence between iterations.
Fields§
§smoother: SmoothingArc
The number of measurements to account for in the iteration
absolute_tol: f64
The absolute tolerance of the RMS prefit residual ratios
relative_tol: f64
The relative tolerance between the latest RMS prefit residual ratios and the best RMS prefit residual ratios so far
max_iterations: usize
The maximum number of iterations to allow (will raise an error if the filter has not converged after this many iterations)
max_divergences: usize
The maximum number of subsequent divergences in RMS.
force_failure: bool
Set to true to force an ODP failure when the convergence criteria is not met
Implementations§
Source§impl IterationConf
impl IterationConf
Sourcepub fn builder() -> IterationConfBuilder<((), (), (), (), (), ())>
pub fn builder() -> IterationConfBuilder<((), (), (), (), (), ())>
Create a builder for building IterationConf
.
On the builder, call .smoother(...)
(optional), .absolute_tol(...)
(optional), .relative_tol(...)
(optional), .max_iterations(...)
(optional), .max_divergences(...)
(optional), .force_failure(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of IterationConf
.
Source§impl IterationConf
impl IterationConf
Trait Implementations§
Source§impl Clone for IterationConf
impl Clone for IterationConf
Source§fn clone(&self) -> IterationConf
fn clone(&self) -> IterationConf
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for IterationConf
impl Debug for IterationConf
Source§impl Default for IterationConf
impl Default for IterationConf
Source§impl Display for IterationConf
impl Display for IterationConf
Source§impl TryFrom<SmoothingArc> for IterationConf
impl TryFrom<SmoothingArc> for IterationConf
impl Copy for IterationConf
Auto Trait Implementations§
impl Freeze for IterationConf
impl RefUnwindSafe for IterationConf
impl Send for IterationConf
impl Sync for IterationConf
impl Unpin for IterationConf
impl UnwindSafe for IterationConf
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.