pub enum RobustError {
NonConvergence {
iters: usize,
},
SingularDesign,
DegenerateScale,
InsufficientData {
needed: usize,
got: usize,
},
InvalidTuning {
value: f64,
},
SubsampleFailure,
DimensionMismatch {
expected: usize,
got: usize,
},
InvalidWeight {
value: f64,
},
UnboundedLoss,
}Expand description
Errors returned by robust estimation routines.
Variants§
NonConvergence
An iterative solver failed to converge within the iteration cap.
SingularDesign
The (weighted) design matrix is singular or rank-deficient.
DegenerateScale
The robust scale collapsed to zero (e.g. more than half the data tied).
InsufficientData
Not enough observations for the requested estimator.
Fields
InvalidTuning
A tuning constant was outside its valid range.
SubsampleFailure
Subsampling (FAST-MCD / FAST-LTS) failed to find a valid subset.
DimensionMismatch
Input arrays have inconsistent lengths.
InvalidWeight
A weight was negative or non-finite.
UnboundedLoss
A scale that requires a bounded loss (the S-scale) was given a loss with
unbounded ρ (rho_sup() == None), which cannot define a high-breakdown
scale.
Trait Implementations§
Source§impl Clone for RobustError
impl Clone for RobustError
Source§fn clone(&self) -> RobustError
fn clone(&self) -> RobustError
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 RobustError
impl Debug for RobustError
Source§impl Display for RobustError
impl Display for RobustError
Source§impl Error for RobustError
impl Error for RobustError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for RobustError
impl PartialEq for RobustError
impl StructuralPartialEq for RobustError
Auto Trait Implementations§
impl Freeze for RobustError
impl RefUnwindSafe for RobustError
impl Send for RobustError
impl Sync for RobustError
impl Unpin for RobustError
impl UnsafeUnpin for RobustError
impl UnwindSafe for RobustError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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 more