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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublepr()Returns the value of theprrecord component.final StringtoString()Returns a string representation of this record class.intu()Returns the value of theurecord component.
-
Constructor Details
-
Method Details
-
compareTo
- Specified by:
compareToin 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 theurecord component.- Returns:
- the value of the
urecord component
-
pr
public double pr()Returns the value of theprrecord component.- Returns:
- the value of the
prrecord component
-