Package smile.neighbor.lsh
Record Class PrZ
java.lang.Object
java.lang.Record
smile.neighbor.lsh.PrZ
- Record Components:
m
- the index of hash function.prh
- the ni probabilities for hm hash function.
- All Implemented Interfaces:
Comparable<PrZ>
The probability list of all buckets for given query object.
-
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.int
m()
Returns the value of them
record component.PrH[]
prh()
Returns the value of theprh
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PrZ>
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
m
public int m()Returns the value of them
record component.- Returns:
- the value of the
m
record component
-
prh
Returns the value of theprh
record component.- Returns:
- the value of the
prh
record component
-