pub struct PreparedDetector<'a, T>where
T: GeoFloat,{ /* private fields */ }
Expand description
This struct allows multiple detection operations to be run on a point set using varying k_neighbours
sizes
without having to rebuild the underlying spatial index. Its PreparedDetector::outliers
method
has the same signature as OutlierDetection::outliers
, but retains the underlying spatial index and point set
for greater efficiency.
Implementations§
Source§impl<'a, T> PreparedDetector<'a, T>
impl<'a, T> PreparedDetector<'a, T>
Sourcepub fn outliers(&self, kneighbours: usize) -> Vec<T>
pub fn outliers(&self, kneighbours: usize) -> Vec<T>
See OutlierDetection::outliers
for usage
Trait Implementations§
Source§impl<'a, T> Clone for PreparedDetector<'a, T>
impl<'a, T> Clone for PreparedDetector<'a, T>
Source§fn clone(&self) -> PreparedDetector<'a, T>
fn clone(&self) -> PreparedDetector<'a, T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a, T> Freeze for PreparedDetector<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for PreparedDetector<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for PreparedDetector<'a, T>
impl<'a, T> Sync for PreparedDetector<'a, T>where
T: Sync,
impl<'a, T> Unpin for PreparedDetector<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for PreparedDetector<'a, T>where
T: RefUnwindSafe + 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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