pub enum Cutoff {
All,
Sigma(f64),
Median(f64),
Distance(f64),
}Expand description
Which points a fit keeps.
A fit keeps the points whose residual is no larger than a threshold, fits again on those, and repeats until the kept set stops changing. The threshold is measured over the points the last round kept.
Variants§
All
Every point, in one round.
Sigma(f64)
The points within k times the RMS residual.
Median(f64)
The points within k times the median residual size.
Distance(f64)
The points within a fixed distance.
Implementations§
Source§impl Cutoff
impl Cutoff
Sourcepub fn check(self) -> OgeomResult<()>
pub fn check(self) -> OgeomResult<()>
The rule’s number checked: finite and positive.
§Errors
OgeomError::Domain if the factor or
the distance is not finite and positive.
Sourcepub fn threshold(self, kept: &[f64]) -> f64
pub fn threshold(self, kept: &[f64]) -> f64
The largest residual size kept, measured over the residuals of the
points the last round kept; infinite for Cutoff::All and where
there are none.
Trait Implementations§
impl Copy for Cutoff
impl StructuralPartialEq for Cutoff
Auto Trait Implementations§
impl Freeze for Cutoff
impl RefUnwindSafe for Cutoff
impl Send for Cutoff
impl Sync for Cutoff
impl Unpin for Cutoff
impl UnsafeUnpin for Cutoff
impl UnwindSafe for Cutoff
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,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.