Package smile.neighbor.lsh
Record Class PrH
java.lang.Object
java.lang.Record
smile.neighbor.lsh.PrH
- Record Components:
u
- the index of bucket.pr
- the probability.
- All Implemented Interfaces:
Serializable
,Comparable<PrH>
The probability for given query object and hash function.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.double
pr()
Returns the value of thepr
record component.final String
toString()
Returns a string representation of this record class.int
u()
Returns the value of theu
record component.
-
Constructor Details
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PrH>
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
u
public int u()Returns the value of theu
record component.- Returns:
- the value of the
u
record component
-
pr
public double pr()Returns the value of thepr
record component.- Returns:
- the value of the
pr
record component
-