Modifier and Type | Class and Description |
---|---|
static class |
RandomSampleKNNPreprocessor.Factory<O,D extends Distance<D>>
The parameterizable factory.
|
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
Logger
|
private RandomFactory |
rnd
Random generator
|
private double |
share
Relative share of objects to get
|
distanceFunction, distanceQuery, k
storage
relation
Constructor and Description |
---|
RandomSampleKNNPreprocessor(Relation<O> relation,
DistanceFunction<? super O,D> distanceFunction,
int k,
double share,
RandomFactory rnd)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Logging |
getLogger()
Get the classes static logger.
|
String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus.
|
String |
getShortName()
A short name for the result, useful for file names.
|
protected void |
preprocess()
Perform the preprocessing step.
|
createStorage, get, getDistanceFactory, getDistanceQuery, getK, getKNNQuery, insertAll
delete, deleteAll, getPageFileStatistics, insert
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete, deleteAll, getPageFileStatistics, insert
private static final Logging LOG
private final double share
private final RandomFactory rnd
public RandomSampleKNNPreprocessor(Relation<O> relation, DistanceFunction<? super O,D> distanceFunction, int k, double share, RandomFactory rnd)
relation
- Relation to indexdistanceFunction
- distance functionk
- kshare
- Relative sharernd
- Random generatorprotected void preprocess()
AbstractMaterializeKNNPreprocessor
preprocess
in class AbstractMaterializeKNNPreprocessor<O,D extends Distance<D>,KNNResult<D extends Distance<D>>>
protected Logging getLogger()
AbstractPreprocessorIndex
public String getLongName()
Result
getLongName
in interface Result
getLongName
in class AbstractIndex<O>
public String getShortName()
Result
getShortName
in interface Result
getShortName
in class AbstractIndex<O>