pub enum MEstimatorType {
Huber {
c: f64,
},
Tukey {
c: f64,
},
Cauchy {
c: f64,
},
Andrews {
c: f64,
},
}Expand description
Type of M-estimator to use
Variants§
Huber
Huber M-estimator (quadratic for small residuals, linear for large)
Tukey
Tukey’s biweight M-estimator (redescending)
Cauchy
Cauchy M-estimator (heavy-tailed)
Andrews
Andrews sine M-estimator (redescending)
Implementations§
Source§impl MEstimatorType
impl MEstimatorType
Sourcepub fn weight(&self, residual: f64) -> f64
pub fn weight(&self, residual: f64) -> f64
Compute the weight function ψ(r)/r for a given residual
Sourcepub fn efficiency(&self) -> f64
pub fn efficiency(&self) -> f64
Get the asymptotic efficiency of the estimator
Sourcepub fn breakdown_point(&self) -> f64
pub fn breakdown_point(&self) -> f64
Get the breakdown point of the estimator
Trait Implementations§
Source§impl Clone for MEstimatorType
impl Clone for MEstimatorType
Source§fn clone(&self) -> MEstimatorType
fn clone(&self) -> MEstimatorType
Returns a duplicate of the value. Read more
1.0.0 · 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 MEstimatorType
impl Debug for MEstimatorType
Source§impl Default for MEstimatorType
impl Default for MEstimatorType
Source§impl PartialEq for MEstimatorType
impl PartialEq for MEstimatorType
impl Copy for MEstimatorType
impl StructuralPartialEq for MEstimatorType
Auto Trait Implementations§
impl Freeze for MEstimatorType
impl RefUnwindSafe for MEstimatorType
impl Send for MEstimatorType
impl Sync for MEstimatorType
impl Unpin for MEstimatorType
impl UnwindSafe for MEstimatorType
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 more