pub struct JointRietveldCheckpoint {
pub request: Vec<JointRietveldHistogram>,
pub histograms: Vec<JointRietveldHistogram>,
pub constraints: Vec<Constraint>,
pub parameters: ParameterSet,
pub objective: f64,
pub damping: f64,
pub history: Vec<JointRietveldIterationRecord>,
}Expand description
Complete accepted state for deterministic joint continuation.
Fields§
§request: Vec<JointRietveldHistogram>Exact original request contract.
histograms: Vec<JointRietveldHistogram>Last accepted joint histogram state.
constraints: Vec<Constraint>Ordered constraint graph.
parameters: ParameterSetLast accepted joint physical parameters.
objective: f64Last accepted joint objective.
damping: f64Damping for the next attempted iteration.
history: Vec<JointRietveldIterationRecord>Complete accepted history.
Implementations§
Source§impl JointRietveldCheckpoint
impl JointRietveldCheckpoint
Sourcepub fn completed_iterations(&self) -> usize
pub fn completed_iterations(&self) -> usize
Return the number of accepted iterations.
Sourcepub fn validate_for(
&self,
request: &[JointRietveldHistogram],
constraints: &[Constraint],
) -> Result<(), JointRietveldRefinementError>
pub fn validate_for( &self, request: &[JointRietveldHistogram], constraints: &[Constraint], ) -> Result<(), JointRietveldRefinementError>
Revalidate this checkpoint against an exact request and constraints.
§Errors
Returns JointRietveldRefinementError::InvalidCheckpoint when any
accepted-state or continuation invariant is stale.
Trait Implementations§
Source§impl Clone for JointRietveldCheckpoint
impl Clone for JointRietveldCheckpoint
Source§fn clone(&self) -> JointRietveldCheckpoint
fn clone(&self) -> JointRietveldCheckpoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JointRietveldCheckpoint
impl Debug for JointRietveldCheckpoint
Source§impl PartialEq for JointRietveldCheckpoint
impl PartialEq for JointRietveldCheckpoint
impl StructuralPartialEq for JointRietveldCheckpoint
Auto Trait Implementations§
impl !RefUnwindSafe for JointRietveldCheckpoint
impl !UnwindSafe for JointRietveldCheckpoint
impl Freeze for JointRietveldCheckpoint
impl Send for JointRietveldCheckpoint
impl Sync for JointRietveldCheckpoint
impl Unpin for JointRietveldCheckpoint
impl UnsafeUnpin for JointRietveldCheckpoint
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn 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 moreSource§fn 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).Source§fn 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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.