pub struct Lts { /* private fields */ }Expand description
A configured Least Trimmed Squares estimator.
Like crate::regression::SEstimator, it is reproducible by default (a
fixed-seed rand_chacha::ChaCha8Rng sub-stream per subsample); configure
with Lts::seed / Lts::fit_with_rng.
Implementations§
Source§impl Lts
impl Lts
Sourcepub fn coverage(self, fraction: f64) -> Self
pub fn coverage(self, fraction: f64) -> Self
Retain a fraction ∈ (0, 1] of the observations instead of the
max-breakdown default; the coverage is h = ⌊fraction · n⌋ (clamped to
[p, n]). Larger fraction trades breakdown for efficiency.
Sourcepub fn n_subsamples(self, n: usize) -> Self
pub fn n_subsamples(self, n: usize) -> Self
Set the number of random elemental subsets (default 500).
Sourcepub fn seed(self, seed: u64) -> Self
pub fn seed(self, seed: u64) -> Self
Set the master RNG seed (default is a fixed internal constant).
Sourcepub fn control(self, control: Control) -> Self
pub fn control(self, control: Control) -> Self
Override the concentration-step convergence control.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lts
impl RefUnwindSafe for Lts
impl Send for Lts
impl Sync for Lts
impl Unpin for Lts
impl UnsafeUnpin for Lts
impl UnwindSafe for Lts
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