From a9ccb379c65fb3a5a1669cd66a3a5c0ca8ae8ef2 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 28 Feb 2018 15:09:03 +0100 Subject: [PATCH] No need for ¢roid, &distance --- src/example.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/example.rs b/src/example.rs index 7c251f2..57dffc2 100644 --- a/src/example.rs +++ b/src/example.rs @@ -103,7 +103,7 @@ fn main() { "green", ]; - let (kmeans, nb_iterations) = kmeans(elements, initial, &distance, ¢roid, 1000).unwrap(); + let (kmeans, nb_iterations) = kmeans(elements, initial, distance, centroid, 1000).unwrap(); let kmeans = kmeans.into_iter(); println!("Converged in {} iterations.", nb_iterations);