From a899c17df3290239541fde18ef6f938feb05a124 Mon Sep 17 00:00:00 2001 From: Ralph Gasser Date: Fri, 17 May 2024 16:34:36 +0200 Subject: [PATCH] Fixes issue in test case. --- .../cottontail/math/clustering/KMeansClustererTest.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cottontaildb-dbms/src/test/kotlin/org/vitrivr/cottontail/math/clustering/KMeansClustererTest.kt b/cottontaildb-dbms/src/test/kotlin/org/vitrivr/cottontail/math/clustering/KMeansClustererTest.kt index bbba3c03f..fca43756d 100644 --- a/cottontaildb-dbms/src/test/kotlin/org/vitrivr/cottontail/math/clustering/KMeansClustererTest.kt +++ b/cottontaildb-dbms/src/test/kotlin/org/vitrivr/cottontail/math/clustering/KMeansClustererTest.kt @@ -6,9 +6,8 @@ import org.apache.commons.math3.random.JDKRandomGenerator import org.apache.commons.math3.util.MathArrays import org.junit.jupiter.api.Assertions.assertTrue import org.junit.jupiter.api.RepeatedTest -import org.vitrivr.cottontail.core.queries.functions.math.distance.binary.EuclideanDistance -import org.vitrivr.cottontail.core.values.DoubleVectorValue import org.vitrivr.cottontail.core.types.Types +import org.vitrivr.cottontail.core.values.DoubleVectorValue import org.vitrivr.cottontail.utilities.VectorUtility import org.vitrivr.cottontail.utilities.math.clustering.KMeansClusterer @@ -45,7 +44,7 @@ class KMeansClustererTest { } /* Prepare clusterer. */ - val clusterer = KMeansClusterer(this.k, EuclideanDistance.DoubleVector(Types.DoubleVector(this.d)), JDKRandomGenerator(seed), 500) + val clusterer = KMeansClusterer(this.k, Types.DoubleVector(this.d), JDKRandomGenerator(seed), 500) val reference = KMeansPlusPlusClusterer(this.k, 500, { a, b -> MathArrays.distance(a, b) }, JDKRandomGenerator(seed)) /* Perform clustering. */