Class PrH

java.lang.Object
smile.neighbor.lsh.PrH
All Implemented Interfaces:
Serializable, Comparable<PrH>

public class PrH extends Object implements Comparable<PrH>, Serializable
The probability for given query object and hash function.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final double
    The probability.
    final int
    The index of bucket.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PrH(int u, double pr)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • u

      public final int u
      The index of bucket.
    • pr

      public final double pr
      The probability.
  • Constructor Details

    • PrH

      public PrH(int u, double pr)
      Constructor.
      Parameters:
      u - the index of bucket.
      pr - the probability.
  • Method Details