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>where
T: GeoFloat + Sum,
impl<'a, T> PreparedDetector<'a, T>where T: GeoFloat + Sum,
sourcepub fn outliers(&self, kneighbours: usize) -> Vec<T>
pub fn outliers(&self, kneighbours: usize) -> Vec<T>
See OutlierDetection::outliers
for usage