Skip to content

Commit

Permalink
ADds InnerProductDistance distance as supported function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralph Gasser committed Jan 13, 2024
1 parent 785cb0d commit 4533961
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ 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.EuclideanDistance
import org.vitrivr.cottontail.core.queries.functions.math.distance.binary.InnerProductDistance
import org.vitrivr.cottontail.core.queries.functions.math.distance.binary.ManhattanDistance
import org.vitrivr.cottontail.core.queries.functions.math.distance.binary.SquaredEuclideanDistance
import org.vitrivr.cottontail.dbms.index.basic.IndexConfig
Expand Down Expand Up @@ -44,7 +45,7 @@ data class PQIndexConfig(val distance: Name.FunctionName, val numCentroids: Int,
const val DEFAULT_SUBSPACES = 8

/** Set of supported distances. */
val SUPPORTED_DISTANCES: Set<Name.FunctionName> = setOf(ManhattanDistance.FUNCTION_NAME, EuclideanDistance.FUNCTION_NAME, SquaredEuclideanDistance.FUNCTION_NAME)
val SUPPORTED_DISTANCES: Set<Name.FunctionName> = setOf(ManhattanDistance.FUNCTION_NAME, EuclideanDistance.FUNCTION_NAME, SquaredEuclideanDistance.FUNCTION_NAME, InnerProductDistance.FUNCTION_NAME)
}

/**
Expand Down

0 comments on commit 4533961

Please sign in to comment.