Package smile.neighbor.lsh
Class PrH
java.lang.Object
smile.neighbor.lsh.PrH
- All Implemented Interfaces:
Serializable
,Comparable<PrH>
The probability for given query object and hash function.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
u
public final int uThe index of bucket. -
pr
public final double prThe probability.
-
-
Constructor Details
-
PrH
public PrH(int u, double pr) Constructor.- Parameters:
u
- the index of bucket.pr
- the probability.
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PrH>
-