2
0
Эх сурвалжийг харах

add sub/super structure metric type

Signed-off-by: Zhiru Zhu <zzhu@fandm.edu>
Zhiru Zhu 5 жил өмнө
parent
commit
f8d021b16c

+ 4 - 0
src/main/java/io/milvus/client/MetricType.java

@@ -35,6 +35,10 @@ public enum MetricType {
   JACCARD(4),
   /** Tanimoto distance. For binary vectors only */
   TANIMOTO(5),
+  /** Substructure: D(a, b) = 1 - N(a&b) / N(b). For binary vectors only */
+  SUBSTRUCTURE(6),
+  /** Superstructure: D(a, b) = 1 - N(a&b) / N(a). For binary vectors only */
+  SUPERSTRUCTURE(7),
 
   UNKNOWN(-1);