de.lmu.ifi.dbs.elki.index.preprocessed.preference
Class AbstractPreferenceVectorIndex<NV extends NumberVector<?,?>>
java.lang.Object
de.lmu.ifi.dbs.elki.index.AbstractIndex<O>
de.lmu.ifi.dbs.elki.index.preprocessed.AbstractPreprocessorIndex<NV,BitSet>
de.lmu.ifi.dbs.elki.index.preprocessed.preference.AbstractPreferenceVectorIndex<NV>
- Type Parameters:
NV
- Number vector
- All Implemented Interfaces:
- Index, PreferenceVectorIndex<NV>, Result
- Direct Known Subclasses:
- DiSHPreferenceVectorIndex, HiSCPreferenceVectorIndex
public abstract class AbstractPreferenceVectorIndex<NV extends NumberVector<?,?>>
- extends AbstractPreprocessorIndex<NV,BitSet>
- implements PreferenceVectorIndex<NV>
Abstract base class for preference vector based algorithms.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractPreferenceVectorIndex
public AbstractPreferenceVectorIndex(Relation<NV> relation)
- Constructor.
- Parameters:
relation
- Relation to use
preprocess
protected abstract void preprocess()
- Preprocessing step.
getPreferenceVector
public BitSet getPreferenceVector(DBID objid)
- Description copied from interface:
PreferenceVectorIndex
- Get the precomputed preference vector for a particular object ID.
- Specified by:
getPreferenceVector
in interface PreferenceVectorIndex<NV extends NumberVector<?,?>>
- Parameters:
objid
- Object ID
- Returns:
- Matrix