com.twitter.algebird

MinHasher32

class MinHasher32 extends MinHasher[Int]

Linear Supertypes
MinHasher[Int], Monoid[MinHashSignature], Semigroup[MinHashSignature], Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MinHasher32
  2. MinHasher
  3. Monoid
  4. Semigroup
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MinHasher32(targetThreshold: Double, maxBytes: Int)

  2. new MinHasher32(numHashes: Int, numBands: Int)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def approxCount(sig: Array[Byte]): Long

    seems to work, but experimental and not generic yet

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def assertNotZero(v: MinHashSignature): Unit

    Definition Classes
    Monoid
  9. def buckets(sig: MinHashSignature): List[Long]

    Bucket keys to use for quickly finding other similar items via locality sensitive hashing

    Bucket keys to use for quickly finding other similar items via locality sensitive hashing

    Definition Classes
    MinHasher
  10. def buildArray(left: Array[Byte], right: Array[Byte])(fn: (Int, Int) ⇒ Int): Array[Byte]

    Decode two signatures into hash values, combine them somehow, and produce a new array

    Decode two signatures into hash values, combine them somehow, and produce a new array

    Attributes
    protected
    Definition Classes
    MinHasher32MinHasher
  11. def buildArray(fn: ⇒ Int): Array[Byte]

    Initialize a byte array by generating hash values

    Initialize a byte array by generating hash values

    Attributes
    protected
    Definition Classes
    MinHasher32MinHasher
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. val estimatedThreshold: Double

    useful for understanding the effects of numBands and numRows

    useful for understanding the effects of numBands and numRows

    Definition Classes
    MinHasher
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  19. def hashSize: Int

    the number of bytes used for each hash in the signature

    the number of bytes used for each hash in the signature

    Definition Classes
    MinHasher32MinHasher
  20. def init(fn: (MurmurHash128) ⇒ (Long, Long)): MinHashSignature

    Create a signature for an arbitrary value

    Create a signature for an arbitrary value

    Definition Classes
    MinHasher
  21. def init(value: String): MinHashSignature

    Create a signature for a single String value

    Create a signature for a single String value

    Definition Classes
    MinHasher
  22. def init(value: Long): MinHashSignature

    Create a signature for a single Long value

    Create a signature for a single Long value

    Definition Classes
    MinHasher
  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. def isNonZero(v: MinHashSignature): Boolean

    Definition Classes
    Monoid
  25. def maxHash: Int

    Maximum value the hash can take on (not 2*hashSize because of signed types)

    Maximum value the hash can take on (not 2*hashSize because of signed types)

    Definition Classes
    MinHasher32MinHasher
  26. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  27. def nonZeroOption(v: MinHashSignature): Option[MinHashSignature]

    Definition Classes
    Monoid
  28. final def notify(): Unit

    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  30. val numBytes: Int

    For explanation of the "bands" and "rows" see Ullman and Rajaraman

    For explanation of the "bands" and "rows" see Ullman and Rajaraman

    Definition Classes
    MinHasher
  31. val numRows: Int

    Definition Classes
    MinHasher
  32. def plus(left: MinHashSignature, right: MinHashSignature): MinHashSignature

    Set union

    Set union

    Definition Classes
    MinHasherSemigroup
  33. def probabilityOfInclusion(sim: Double): Double

    useful for understanding the effects of numBands and numRows

    useful for understanding the effects of numBands and numRows

    Definition Classes
    MinHasher
  34. def similarity(left: MinHashSignature, right: MinHashSignature): Double

    Esimate jaccard similarity (size of union / size of intersection)

    Esimate jaccard similarity (size of union / size of intersection)

    Definition Classes
    MinHasher
  35. def sum(vs: TraversableOnce[MinHashSignature]): MinHashSignature

    Definition Classes
    Monoid
  36. def sumOption(iter: TraversableOnce[MinHashSignature]): Option[MinHashSignature]

    override this if there is a faster way to do this sum than reduceLeftOption on plus

    override this if there is a faster way to do this sum than reduceLeftOption on plus

    Definition Classes
    Semigroup
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  38. def toString(): String

    Definition Classes
    AnyRef → Any
  39. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. val zero: MinHashSignature

    Signature for empty set, needed to be a proper Monoid

    Signature for empty set, needed to be a proper Monoid

    Definition Classes
    MinHasherMonoid

Inherited from MinHasher[Int]

Inherited from Monoid[MinHashSignature]

Inherited from Semigroup[MinHashSignature]

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped