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