Package elki.index.laesa
Class LAESA.Factory<O>
- java.lang.Object
-
- elki.index.laesa.LAESA.Factory<O>
-
- Type Parameters:
O- Object type
- All Implemented Interfaces:
IndexFactory<O>
public static class LAESA.Factory<O> extends java.lang.Object implements IndexFactory<O>
Index factory.- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLAESA.Factory.Par<O>Parameterization class.
-
Constructor Summary
Constructors Constructor Description Factory(Distance<? super O> distance, int m, int k, RandomFactory rng)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.LAESA<O>instantiate(Relation<O> relation)Sets the database in the distance function of this index (if existing).
-
-
-
Field Detail
-
m
int m
Number of reference points
-
k
int k
Condition parameter
-
rng
RandomFactory rng
Random generator
-
-
Constructor Detail
-
Factory
public Factory(Distance<? super O> distance, int m, int k, RandomFactory rng)
Constructor.- Parameters:
distance- Distance functionm- Number of reference pointsrng- Random generator
-
-
Method Detail
-
instantiate
public LAESA<O> instantiate(Relation<O> relation)
Description copied from interface:IndexFactorySets the database in the distance function of this index (if existing).- Specified by:
instantiatein interfaceIndexFactory<O>- 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<O>- Returns:
- Type restriction
-
-