Package elki.index.lsh
Class InMemoryLSHIndex.Par<V>
- java.lang.Object
-
- elki.index.lsh.InMemoryLSHIndex.Par<V>
-
- All Implemented Interfaces:
Parameterizer
- Enclosing class:
- InMemoryLSHIndex<V>
public static class InMemoryLSHIndex.Par<V> extends java.lang.Object implements Parameterizer
Parameterization class.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description static OptionIDBUCKETS_IDNumber of hash tables to use for LSH.(package private) LocalitySensitiveHashFunctionFamily<? super V>familyLSH hash function family to use.static OptionIDFAMILY_IDHash function family parameter.(package private) intlNumber of hash functions for each table.static OptionIDL_IDNumber of hash tables to use for LSH.(package private) intnumberOfBucketsNumber of buckets to use.
-
Constructor Summary
Constructors Constructor Description Par()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(Parameterization config)Configure the class.InMemoryLSHIndex<V>make()Make an instance after successful configuration.
-
-
-
Field Detail
-
FAMILY_ID
public static final OptionID FAMILY_ID
Hash function family parameter.
-
L_ID
public static final OptionID L_ID
Number of hash tables to use for LSH.
-
BUCKETS_ID
public static final OptionID BUCKETS_ID
Number of hash tables to use for LSH.
-
family
LocalitySensitiveHashFunctionFamily<? super V> family
LSH hash function family to use.
-
l
int l
Number of hash functions for each table.
-
numberOfBuckets
int numberOfBuckets
Number of buckets to use.
-
-
Method Detail
-
configure
public void configure(Parameterization config)
Description copied from interface:ParameterizerConfigure the class.Note: the status is collected by the parameterization object, so that multiple errors may arise and be reported in one run.
- Specified by:
configurein interfaceParameterizer- Parameters:
config- Parameterization
-
make
public InMemoryLSHIndex<V> make()
Description copied from interface:ParameterizerMake an instance after successful configuration.Note: your class should return the exact type, only this very broad interface should use
Objectas return type.- Specified by:
makein interfaceParameterizer- Returns:
- a new instance
-
-