From 15ec99c64f65da7966b4282ff94fee0a611c23df Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 25 Feb 2021 11:24:42 -0500 Subject: knn: Move NearestNeighbor interfaces to a submodule --- src/exhaustive.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/exhaustive.rs') diff --git a/src/exhaustive.rs b/src/exhaustive.rs index 442850c..f0abf9c 100644 --- a/src/exhaustive.rs +++ b/src/exhaustive.rs @@ -1,7 +1,7 @@ -//! Exhaustive nearest neighbor search. +//! [Exhaustive nearest neighbor search](https://en.wikipedia.org/wiki/Nearest_neighbor_search#Linear_search). use crate::distance::Proximity; -use crate::{ExactNeighbors, NearestNeighbors, Neighborhood}; +use crate::knn::{ExactNeighbors, NearestNeighbors, Neighborhood}; use std::iter::FromIterator; @@ -118,7 +118,7 @@ impl, V> ExactNeighbors for ExhaustiveSearch {} pub mod tests { use super::*; - use crate::tests::test_exact_neighbors; + use crate::knn::tests::test_exact_neighbors; #[test] fn test_exhaustive_index() { -- cgit v1.2.3