pub struct Ogk<S = Qn> { /* private fields */ }Expand description
A configured OGK estimator, generic over the robust univariate scale (the
default Qn is Maronna & Zamar’s recommendation; the location functional
paired with it is the median).
Implementations§
Source§impl<S: ScaleEstimator> Ogk<S>
impl<S: ScaleEstimator> Ogk<S>
Sourcepub fn new(scale: S) -> Self
pub fn new(scale: S) -> Self
Create an OGK estimator with the given robust scale, two orthogonalization iterations and reweighting on.
Sourcepub fn n_iter(self, n: usize) -> Self
pub fn n_iter(self, n: usize) -> Self
Set the number of orthogonalization iterations (default 2).
Sourcepub fn reweight(self, on: bool) -> Self
pub fn reweight(self, on: bool) -> Self
Enable or disable the one-step reweighting (default true).
Sourcepub fn fit(&self, x: &Array2<f64>) -> Result<ScatterFit, RobustError>
pub fn fit(&self, x: &Array2<f64>) -> Result<ScatterFit, RobustError>
Fit the estimator to the n × p data matrix x.
Trait Implementations§
impl<S: Copy> Copy for Ogk<S>
Auto Trait Implementations§
impl<S> Freeze for Ogk<S>where
S: Freeze,
impl<S> RefUnwindSafe for Ogk<S>where
S: RefUnwindSafe,
impl<S> Send for Ogk<S>where
S: Send,
impl<S> Sync for Ogk<S>where
S: Sync,
impl<S> Unpin for Ogk<S>where
S: Unpin,
impl<S> UnsafeUnpin for Ogk<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Ogk<S>where
S: UnwindSafe,
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