Class LocalitySensitiveHash
- java.lang.Object
-
- ai.preferred.cerebro.index.builder.LocalitySensitiveHash
-
public class LocalitySensitiveHash extends java.lang.Object
This class calculate the hashcode of a vector given which set of hashing vectors it was created with.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
dimension
protected int
numHashBit
protected double[][]
splitVecs
-
Constructor Summary
Constructors Constructor Description LocalitySensitiveHash(double[][] splitVecs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.util.BytesRef
getHashBit(double[] features)
-