Package elki.index.lsh
Class InMemoryLSHIndex<V>
- java.lang.Object
-
- elki.index.lsh.InMemoryLSHIndex<V>
-
- Type Parameters:
V- Object type to index
- All Implemented Interfaces:
IndexFactory<V>
public class InMemoryLSHIndex<V> extends java.lang.Object implements IndexFactory<V>
Locality Sensitive Hashing.- Since:
- 0.6.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classInMemoryLSHIndex.InstanceInstance of a LSH index for a single relation.static classInMemoryLSHIndex.Par<V>Parameterization class.
-
Field Summary
Fields Modifier and Type Field Description (package private) LocalitySensitiveHashFunctionFamily<? super V>familyLSH hash function family to use.(package private) intlNumber of hash tables to use.private static LoggingLOGClass logger(package private) intnumberOfBucketsNumber of buckets to use.
-
Constructor Summary
Constructors Constructor Description InMemoryLSHIndex(LocalitySensitiveHashFunctionFamily<? super V> family, int l, int numberOfBuckets)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeInformationgetInputTypeRestriction()Get the input type restriction used for negotiating the data query.InMemoryLSHIndex.Instanceinstantiate(Relation<V> relation)Sets the database in the distance function of this index (if existing).
-
-
-
Field Detail
-
LOG
private static final Logging LOG
Class logger
-
family
LocalitySensitiveHashFunctionFamily<? super V> family
LSH hash function family to use.
-
l
int l
Number of hash tables to use.
-
numberOfBuckets
int numberOfBuckets
Number of buckets to use.
-
-
Constructor Detail
-
InMemoryLSHIndex
public InMemoryLSHIndex(LocalitySensitiveHashFunctionFamily<? super V> family, int l, int numberOfBuckets)
Constructor.- Parameters:
family- Projection familyl- Number of hash tables to usenumberOfBuckets- Number of buckets to use.
-
-
Method Detail
-
instantiate
public InMemoryLSHIndex.Instance instantiate(Relation<V> relation)
Description copied from interface:IndexFactorySets the database in the distance function of this index (if existing).- Specified by:
instantiatein interfaceIndexFactory<V>- Parameters:
relation- the relation to index
-
getInputTypeRestriction
public TypeInformation getInputTypeRestriction()
Description copied from interface:IndexFactoryGet the input type restriction used for negotiating the data query.- Specified by:
getInputTypeRestrictionin interfaceIndexFactory<V>- Returns:
- Type restriction
-
-