pub struct Sn {
pub consistency: f64,
pub finite_sample_correction: bool,
}Expand description
Sn = c · dₙ · med_i { med_j |rᵢ − rⱼ| }: a low-median over points of the
per-point high-median of the pairwise absolute differences. The constant
c = 1.1926 gives consistency for σ at the Gaussian; dₙ is a finite-sample
correction (Croux & Rousseeuw 1992).
Like Qn it needs no location reference and has a 50% breakdown point, with
≈ 58% Gaussian efficiency; it is often preferred for its simpler influence
function. Evaluated in O(n²) time / O(n) space here (the O(n log n)
algorithm is a possible follow-up).
Fields§
§consistency: f64Asymptotic consistency constant (default 1.1926).
finite_sample_correction: boolApply the finite-sample correction dₙ (default true).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sn
impl RefUnwindSafe for Sn
impl Send for Sn
impl Sync for Sn
impl Unpin for Sn
impl UnsafeUnpin for Sn
impl UnwindSafe for Sn
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