pub struct ResidualDiagnostics {
pub n_residuals: usize,
pub n_parameters: usize,
pub degrees_of_freedom: isize,
pub weighted_sum_squares: f64,
pub rms_m: f64,
pub normalized_residuals: Vec<f64>,
pub worst_index: Option<usize>,
pub reduced_chi_square: Option<f64>,
pub chi_square_threshold: Option<f64>,
pub chi_square_consistent: Option<bool>,
}Expand description
Standalone post-fit residual diagnostics.
Fields§
§n_residuals: usizeNumber of residuals.
n_parameters: usizeNumber of fitted parameters used to compute redundancy.
degrees_of_freedom: isizeRedundancy / degrees of freedom: n_residuals - n_parameters.
weighted_sum_squares: f64Weighted residual sum of squares.
rms_m: f64Root-mean-square residual in metres, unweighted.
normalized_residuals: Vec<f64>Residuals scaled by sqrt(weight); unit weights when no weights are given.
worst_index: Option<usize>Index of the largest absolute normalized residual.
reduced_chi_square: Option<f64>Reduced chi-square, weighted_sum_squares / degrees_of_freedom, when
degrees of freedom are positive.
chi_square_threshold: Option<f64>Chi-square threshold for the requested false-alarm probability, when requested and degrees of freedom are positive.
chi_square_consistent: Option<bool>Whether weighted_sum_squares <= chi_square_threshold, when a threshold
was requested and degrees of freedom are positive.
Trait Implementations§
Source§impl Clone for ResidualDiagnostics
impl Clone for ResidualDiagnostics
Source§fn clone(&self) -> ResidualDiagnostics
fn clone(&self) -> ResidualDiagnostics
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 ResidualDiagnostics
impl Debug for ResidualDiagnostics
Source§impl PartialEq for ResidualDiagnostics
impl PartialEq for ResidualDiagnostics
Source§fn eq(&self, other: &ResidualDiagnostics) -> bool
fn eq(&self, other: &ResidualDiagnostics) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResidualDiagnostics
Auto Trait Implementations§
impl Freeze for ResidualDiagnostics
impl RefUnwindSafe for ResidualDiagnostics
impl Send for ResidualDiagnostics
impl Sync for ResidualDiagnostics
impl Unpin for ResidualDiagnostics
impl UnsafeUnpin for ResidualDiagnostics
impl UnwindSafe for ResidualDiagnostics
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.