summaryrefslogtreecommitdiffstats
path: root/src/exhaustive.rs
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-02-25 11:24:42 -0500
committerTavian Barnes <tavianator@tavianator.com>2021-02-25 11:24:42 -0500
commit15ec99c64f65da7966b4282ff94fee0a611c23df (patch)
tree9d810c6e5e3e8e1ead73e87c237e30823a588e52 /src/exhaustive.rs
parent87a9da4e3ff0e54927ed20120db8b0317f7c272e (diff)
downloadacap-15ec99c64f65da7966b4282ff94fee0a611c23df.tar.xz
knn: Move NearestNeighbor interfaces to a submodule
Diffstat (limited to 'src/exhaustive.rs')
-rw-r--r--src/exhaustive.rs6
1 files changed, 3 insertions, 3 deletions
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<K: Proximity<V>, V> ExactNeighbors<K, V> for ExhaustiveSearch<V> {}
pub mod tests {
use super::*;
- use crate::tests::test_exact_neighbors;
+ use crate::knn::tests::test_exact_neighbors;
#[test]
fn test_exhaustive_index() {