de.lmu.ifi.dbs.elki.index.preprocessed.preference
Class AbstractPreferenceVectorIndex<NV extends NumberVector<?,?>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.index.AbstractIndex<O>
      extended by de.lmu.ifi.dbs.elki.index.preprocessed.AbstractPreprocessorIndex<NV,BitSet>
          extended by 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.


Nested Class Summary
static class AbstractPreferenceVectorIndex.Factory<V extends NumberVector<?,?>,I extends PreferenceVectorIndex<V>>
          Factory class
 
Field Summary
 
Fields inherited from class de.lmu.ifi.dbs.elki.index.preprocessed.AbstractPreprocessorIndex
storage
 
Fields inherited from class de.lmu.ifi.dbs.elki.index.AbstractIndex
relation
 
Constructor Summary
AbstractPreferenceVectorIndex(Relation<NV> relation)
          Constructor.
 
Method Summary
 BitSet getPreferenceVector(DBID objid)
          Get the precomputed preference vector for a particular object ID.
protected abstract  void preprocess()
          Preprocessing step.
 
Methods inherited from class de.lmu.ifi.dbs.elki.index.preprocessed.AbstractPreprocessorIndex
getLogger
 
Methods inherited from class de.lmu.ifi.dbs.elki.index.AbstractIndex
delete, deleteAll, getLongName, getPageFileStatistics, getShortName, insert, insertAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.lmu.ifi.dbs.elki.index.Index
delete, deleteAll, getPageFileStatistics, insert, insertAll
 
Methods inherited from interface de.lmu.ifi.dbs.elki.result.Result
getLongName, getShortName
 

Constructor Detail

AbstractPreferenceVectorIndex

public AbstractPreferenceVectorIndex(Relation<NV> relation)
Constructor.

Parameters:
relation - Relation to use
Method Detail

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

Release 0.4.0 (2011-09-20_1324)