@Reference(authors="M. S. Charikar",title="Similarity estimation techniques from rounding algorithms",booktitle="Proc. 34th ACM Symposium on Theory of Computing, STOC\'02",url="https://doi.org/10.1145/509907.509965",bibkey="DBLP:conf/stoc/Charikar02") @Reference(authors="M. Henzinger",title="Finding near-duplicate web pages: a large-scale evaluation of algorithms",booktitle="Proc. 29th ACM Conf. Research and Development in Information Retrieval (SIGIR 2006)",url="https://doi.org/10.1145/1148170.1148222",bibkey="DBLP:conf/sigir/Henzinger06") public class CosineHashFunctionFamily extends java.lang.Object implements LocalitySensitiveHashFunctionFamily<NumberVector>
References:
M. S. Charikar
Similarity estimation techniques from rounding algorithms
Proc. 34th ACM Symposium on Theory of Computing, STOC'02
M. Henzinger
Finding near-duplicate web pages: a large-scale evaluation of algorithms
Proc. 29th ACM Conf. Research and Development in Information Retrieval
(SIGIR 2006)
| Modifier and Type | Class and Description |
|---|---|
static class |
CosineHashFunctionFamily.Parameterizer
Parameterization class.
|
| Modifier and Type | Field and Description |
|---|---|
private int |
k
The number of projections to use for each hash function.
|
private RandomProjectionFamily |
proj
Projection family to use.
|
| Constructor and Description |
|---|
CosineHashFunctionFamily(int k,
RandomFactory random)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<? extends LocalitySensitiveHashFunction<? super NumberVector>> |
generateHashFunctions(Relation<? extends NumberVector> relation,
int l)
Generate hash functions for the given relation.
|
TypeInformation |
getInputTypeRestriction()
Get the input type information.
|
boolean |
isCompatible(DistanceFunction<?> df)
Check whether the given distance function can be accelerated using this
hash family.
|
private RandomProjectionFamily proj
private int k
public CosineHashFunctionFamily(int k,
RandomFactory random)
k - Number of projections to use.random - Random factory.public TypeInformation getInputTypeRestriction()
LocalitySensitiveHashFunctionFamilygetInputTypeRestriction in interface LocalitySensitiveHashFunctionFamily<NumberVector>public java.util.ArrayList<? extends LocalitySensitiveHashFunction<? super NumberVector>> generateHashFunctions(Relation<? extends NumberVector> relation, int l)
LocalitySensitiveHashFunctionFamilygenerateHashFunctions in interface LocalitySensitiveHashFunctionFamily<NumberVector>relation - Relation to indexl - Number of hash tables to usepublic boolean isCompatible(DistanceFunction<?> df)
LocalitySensitiveHashFunctionFamilyisCompatible in interface LocalitySensitiveHashFunctionFamily<NumberVector>df - Distance function.true when appropriate.Copyright © 2019 ELKI Development Team. License information.