From 7fbb15403d72c2dda45edf19ed71e50ac6278fd8 Mon Sep 17 00:00:00 2001 From: Ralph Gasser Date: Sat, 13 Jan 2024 09:34:39 +0100 Subject: [PATCH] Remove COSINE distance as supported function. --- .../org/vitrivr/cottontail/dbms/index/pq/PQIndexConfig.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/index/pq/PQIndexConfig.kt b/cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/index/pq/PQIndexConfig.kt index 930f3739c..2bf250e43 100644 --- a/cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/index/pq/PQIndexConfig.kt +++ b/cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/index/pq/PQIndexConfig.kt @@ -5,7 +5,6 @@ import jetbrains.exodus.bindings.IntegerBinding import jetbrains.exodus.bindings.StringBinding import jetbrains.exodus.util.LightOutputStream import org.vitrivr.cottontail.core.database.Name -import org.vitrivr.cottontail.core.queries.functions.math.distance.binary.CosineDistance import org.vitrivr.cottontail.core.queries.functions.math.distance.binary.EuclideanDistance import org.vitrivr.cottontail.core.queries.functions.math.distance.binary.ManhattanDistance import org.vitrivr.cottontail.core.queries.functions.math.distance.binary.SquaredEuclideanDistance @@ -45,7 +44,7 @@ data class PQIndexConfig(val distance: Name.FunctionName, val numCentroids: Int, const val DEFAULT_SUBSPACES = 8 /** Set of supported distances. */ - val SUPPORTED_DISTANCES: Set = setOf(ManhattanDistance.FUNCTION_NAME, EuclideanDistance.FUNCTION_NAME, SquaredEuclideanDistance.FUNCTION_NAME, CosineDistance.FUNCTION_NAME) + val SUPPORTED_DISTANCES: Set = setOf(ManhattanDistance.FUNCTION_NAME, EuclideanDistance.FUNCTION_NAME, SquaredEuclideanDistance.FUNCTION_NAME) } /**