
| 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 |
logger
Logger
|
private Long |
seed
Random seed
|
private double |
share
Relative share of objects to get
|
distanceFunction, distanceQuery, kstoragerelation| Constructor and Description |
|---|
RandomSampleKNNPreprocessor(Relation<O> relation,
DistanceFunction<? super O,D> distanceFunction,
int k,
double share,
Long seed)
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, insertAlldelete, deleteAll, getPageFileStatistics, insertclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, deleteAll, getPageFileStatistics, insertprivate static final Logging logger
private final double share
private final Long seed
public RandomSampleKNNPreprocessor(Relation<O> relation, DistanceFunction<? super O,D> distanceFunction, int k, double share, Long seed)
relation - Relation to indexdistanceFunction - distance functionk - kshare - Relative shareseed - Random seed (may be null)protected void preprocess()
AbstractMaterializeKNNPreprocessorpreprocess in class AbstractMaterializeKNNPreprocessor<O,D extends Distance<D>,KNNResult<D extends Distance<D>>>protected Logging getLogger()
AbstractPreprocessorIndexpublic String getLongName()
ResultgetLongName in interface ResultgetLongName in class AbstractIndex<O>public String getShortName()
ResultgetShortName in interface ResultgetShortName in class AbstractIndex<O>