Struct geo::algorithm::outlier_detection::PreparedDetector
source · 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> 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: UnwindSafe + RefUnwindSafe,
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