
NV - Vector type@Title(value="Range Query Based Local PCA Preprocessor") @Description(value="Materializes the local PCA and the locally weighted matrix of objects of a database. The PCA is based on epsilon range queries.") public class RangeQueryFilteredPCAIndex<NV extends NumberVector<?>> extends AbstractFilteredPCAIndex<NV>
| Modifier and Type | Class and Description |
|---|---|
static class |
RangeQueryFilteredPCAIndex.Factory<V extends NumberVector<?>>
Factory class.
|
| Modifier and Type | Field and Description |
|---|---|
private DoubleDistance |
epsilon
Query epsilon.
|
private static Logging |
LOG
Logger.
|
private RangeQuery<NV,DoubleDistance> |
rangeQuery
The kNN query instance we use.
|
pcastoragerelation| Constructor and Description |
|---|
RangeQueryFilteredPCAIndex(Relation<NV> database,
PCAFilteredRunner<NV> pca,
RangeQuery<NV,DoubleDistance> rangeQuery,
DoubleDistance epsilon)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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 DistanceDBIDResult<DoubleDistance> |
objectsForPCA(DBIDRef id)
Returns the objects to be considered within the PCA for the specified query
object.
|
getLocalProjection, preprocessdelete, deleteAll, getPageFileStatistics, insert, insertAllprivate static final Logging LOG
private final RangeQuery<NV extends NumberVector<?>,DoubleDistance> rangeQuery
private final DoubleDistance epsilon
public RangeQueryFilteredPCAIndex(Relation<NV> database, PCAFilteredRunner<NV> pca, RangeQuery<NV,DoubleDistance> rangeQuery, DoubleDistance epsilon)
database - Database to usepca - PCA Runner to userangeQuery - Range Query to useepsilon - Query rangeprotected DistanceDBIDResult<DoubleDistance> objectsForPCA(DBIDRef id)
AbstractFilteredPCAIndexobjectsForPCA in class AbstractFilteredPCAIndex<NV extends NumberVector<?>>id - the id of the query object for which a PCA should be performedpublic String getLongName()
ResultgetLongName in interface ResultgetLongName in class AbstractIndex<NV extends NumberVector<?>>public String getShortName()
ResultgetShortName in interface ResultgetShortName in class AbstractIndex<NV extends NumberVector<?>>public Logging getLogger()
AbstractPreprocessorIndexgetLogger in class AbstractPreprocessorIndex<NV extends NumberVector<?>,PCAFilteredResult>