C# Class SoundFingerprinting.LSH.LocalitySensitiveHashingAlgorithm

Inheritance: ILocalitySensitiveHashingAlgorithm
Show file Open project: AddictedCS/soundfingerprinting Class Usage Examples

Public Methods

Method Description
Hash ( Fingerprint fingerprint, int numberOfHashTables, int numberOfHashKeysPerTable, IEnumerable clusters ) : HashedFingerprint
LocalitySensitiveHashingAlgorithm ( ) : System.Collections.Generic

Protected Methods

Method Description
GroupIntoHashTables ( byte minHashes, int numberOfHashTables, int numberOfHashesPerTable ) : long[]

Compute LSH hash buckets which will be inserted into hash tables. Each fingerprint will have a candidate in each of the hash tables.

Private Methods

Method Description
LocalitySensitiveHashingAlgorithm ( IMinHashService minHashService, IHashConverter hashConverter ) : System.Collections.Generic

Method Details

GroupIntoHashTables() protected method

Compute LSH hash buckets which will be inserted into hash tables. Each fingerprint will have a candidate in each of the hash tables.
protected GroupIntoHashTables ( byte minHashes, int numberOfHashTables, int numberOfHashesPerTable ) : long[]
minHashes byte Min Hashes gathered from every fingerprint [N = 100]
numberOfHashTables int Number of hash tables [L = 25]
numberOfHashesPerTable int Number of min hashes per key [N = 4]
return long[]

Hash() public method

public Hash ( Fingerprint fingerprint, int numberOfHashTables, int numberOfHashKeysPerTable, IEnumerable clusters ) : HashedFingerprint
fingerprint SoundFingerprinting.Data.Fingerprint
numberOfHashTables int
numberOfHashKeysPerTable int
clusters IEnumerable
return SoundFingerprinting.Data.HashedFingerprint

LocalitySensitiveHashingAlgorithm() public method

public LocalitySensitiveHashingAlgorithm ( ) : System.Collections.Generic
return System.Collections.Generic