Skip to main content

ChunkedNearestNeighborIndex

Trait ChunkedNearestNeighborIndex 

Source
pub trait ChunkedNearestNeighborIndex: NearestNeighborIndex {
    // Required method
    fn nearest_k_chunk_into(
        &self,
        x: &[f32],
        y: &[f32],
        z: &[f32],
        chunk: ChunkQueryRange,
        k: usize,
        out: &mut Vec<(usize, Neighbor)>,
    );
}
Expand description

k-NN search over contiguous query index ranges.

Required Methods§

Source

fn nearest_k_chunk_into( &self, x: &[f32], y: &[f32], z: &[f32], chunk: ChunkQueryRange, k: usize, out: &mut Vec<(usize, Neighbor)>, )

Appends (query_index, neighbor) for each point index in chunk.

Implementors§