Sha256: 1b3b6faf4daef2c2cb748ea7596a3d506f019c0fcc1894825351274a02a7b3e2

Contents?: true

Size: 531 Bytes

Versions: 1

Compression:

Stored size: 531 Bytes

Contents

module Minhash
  # Class for generating Minhash signature
  class Minhash
    @seed_root: Integer 
    @hashes: Array[^(String) -> Integer]

    attr_reader seed_root: Integer 

    HASH_MAX: Integer

    def initialize: (?Integer n_hashes, ?Integer seed_root) -> void

    # Produces the Minhash signature for a given Set
    #
    # @param set [Set] the set to produce the signature for
    #
    # @return [Array[Integer]] 32 bit integer array of length n_hashes
    def signature: (Set[String] set) -> Array[Integer]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
doc_sim-0.1.1 sig/doc_sim/minhash.rbs