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