Package generic.lsh.vector
Class LSHCosineVectorAccum.Entry
- java.lang.Object
-
- generic.lsh.vector.LSHCosineVectorAccum.Entry
-
- All Implemented Interfaces:
java.lang.Comparable<LSHCosineVectorAccum.Entry>
- Enclosing class:
- LSHCosineVectorAccum
public static class LSHCosineVectorAccum.Entry extends java.lang.Object implements java.lang.Comparable<LSHCosineVectorAccum.Entry>
-
-
Constructor Summary
Constructors Constructor Description Entry(int hash, double weight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(LSHCosineVectorAccum.Entry o)
Comparison must be UNSIGNED!!boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
compareTo
public int compareTo(LSHCosineVectorAccum.Entry o)
Comparison must be UNSIGNED!!- Specified by:
compareTo
in interfacejava.lang.Comparable<LSHCosineVectorAccum.Entry>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-