public class EuclideanHash extends java.lang.Object implements HashFunction
| Constructor and Description |
|---|
EuclideanHash(int dimensions,
int w) |
| Modifier and Type | Method and Description |
|---|---|
int |
hash(Vector vector)
Hashes a vector of arbitrary dimensions to an integer.
|
public int hash(Vector vector)
HashFunctionhash in interface HashFunctionvector - The vector to hash. Can have any number of dimensions.