|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.hogent.tarsos.lsh.families.CosineHash
public class CosineHash
Constructor Summary | |
---|---|
CosineHash(int dimensions)
|
Method Summary | |
---|---|
int |
hash(Vector vector)
Hashes a vector of arbitrary dimensions to an integer. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CosineHash(int dimensions)
Method Detail |
---|
public int hash(Vector vector)
HashFunction
hash
in interface HashFunction
vector
- The vector to hash. Can have any number of dimensions.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |