pub trait NeighborhoodProvider {
// Required methods
fn query_k(&self, index: usize, k: usize) -> SpatialResult<Vec<usize>>;
fn query_radius(
&self,
index: usize,
radius: f32,
) -> SpatialResult<Vec<usize>>;
}Expand description
Neighborhood query abstraction for feature estimation.
Required Methods§
Sourcefn query_k(&self, index: usize, k: usize) -> SpatialResult<Vec<usize>>
fn query_k(&self, index: usize, k: usize) -> SpatialResult<Vec<usize>>
Returns up to k neighbor indices excluding the query point itself.
Sourcefn query_radius(&self, index: usize, radius: f32) -> SpatialResult<Vec<usize>>
fn query_radius(&self, index: usize, radius: f32) -> SpatialResult<Vec<usize>>
Returns all neighbor indices within radius, excluding the query point.