pub fn singleton_knn<M: Metric>(
        &self,
        point: &[f32],
        point_cloud: &PointCloud<M>,
        query_heap: &mut KnnQueryHeap,
    ) -> MalwareBrotResult<()> {
        let distances = point_cloud.distances_to_point(point, &self.singles_indexes[..])?;
        query_heap.push_outliers(&self.singles_indexes[..], &distances[..]);
        Ok(())
    }
/// Performs a brute force knn against just the singleton children with a provided query heap.
Performs a brute force knn against just the singleton children with a provided query heap.
Performs a brute force knn against just the singleton children with a provided query heap .
pub fn singleton_knn<M: Metric>(
        &self,
        point: &[f32],
        point_cloud: &PointCloud<M>,
        query_heap: &mut KnnQueryHeap,
    ) -> MalwareBrotResult<()> {
        let distances = point_cloud.distances_to_point(point, &self.singles_indexes[..])?;
        query_heap.push_outliers(&self.singles_indexes[..], &distances[..]);
        Ok(())
    }
pub fn singleton_knn < M : Metric > ( & self , point : & [ f32 ] , point_cloud : & PointCloud < M > , query_heap : & mut KnnQueryHeap , ) -> MalwareBrotResult < ( ) > { let distances = point_cloud . distances_to_point ( point , & self . singles_indexes [ .. ] ) ? ; query_heap . push_outliers ( & self . singles_indexes [ .. ] , & distances [ .. ] ) ; Ok ( ( ) ) }
Performs a brute force knn against just the singleton children with a provided query heap.
Performs a brute force knn against just the singleton children with a provided query heap .
&self
point
&[f32]
point_cloud
&PointCloud<M>
query_heap
&mut KnnQueryHeap
&self
point
&[f32]
point_cloud
&PointCloud<M>
query_heap
&mut KnnQueryHeap