|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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<V> de.lmu.ifi.dbs.elki.index.preprocessed.preference.HiSCPreferenceVectorIndex<V>
@Title(value="HiSC Preprocessor") @Description(value="Computes the preference vector of objects of a certain database according to the HiSC algorithm.") public class HiSCPreferenceVectorIndex<V extends NumberVector<?,?>>
Preprocessor for HiSC preference vector assignment to objects of a certain database.
HiSC
Nested Class Summary | |
---|---|
static class |
HiSCPreferenceVectorIndex.Factory<V extends NumberVector<?,?>>
Factory class |
Field Summary | |
---|---|
protected double |
alpha
Holds the value of parameter alpha. |
protected int |
k
Holds the value of parameter k. |
protected static Logging |
logger
Logger to use |
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 | |
---|---|
HiSCPreferenceVectorIndex(Relation<V> relation,
double alpha,
int k)
Constructor. |
Method Summary | |
---|---|
private BitSet |
determinePreferenceVector(Relation<V> relation,
DBID id,
DBIDs neighborIDs,
StringBuffer msg)
Determines the preference vector according to the specified neighbor ids. |
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()
Preprocessing step. |
Methods inherited from class de.lmu.ifi.dbs.elki.index.preprocessed.preference.AbstractPreferenceVectorIndex |
---|
getPreferenceVector |
Methods inherited from class de.lmu.ifi.dbs.elki.index.AbstractIndex |
---|
delete, deleteAll, getPageFileStatistics, 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.preprocessed.preference.PreferenceVectorIndex |
---|
getPreferenceVector |
Methods inherited from interface de.lmu.ifi.dbs.elki.index.Index |
---|
delete, deleteAll, getPageFileStatistics, insert, insertAll |
Field Detail |
---|
protected static final Logging logger
protected double alpha
protected int k
Constructor Detail |
---|
public HiSCPreferenceVectorIndex(Relation<V> relation, double alpha, int k)
relation
- Relation in usealpha
- Alpha valuek
- k valueMethod Detail |
---|
protected void preprocess()
AbstractPreferenceVectorIndex
preprocess
in class AbstractPreferenceVectorIndex<V extends NumberVector<?,?>>
private BitSet determinePreferenceVector(Relation<V> relation, DBID id, DBIDs neighborIDs, StringBuffer msg)
relation
- the database storing the objectsid
- the id of the object for which the preference vector should be
determinedneighborIDs
- the ids of the neighborsmsg
- a string buffer for debug messages
protected Logging getLogger()
AbstractPreprocessorIndex
getLogger
in class AbstractPreprocessorIndex<V extends NumberVector<?,?>,BitSet>
public String getLongName()
Result
getLongName
in interface Result
getLongName
in class AbstractIndex<V extends NumberVector<?,?>>
public String getShortName()
Result
getShortName
in interface Result
getShortName
in class AbstractIndex<V extends NumberVector<?,?>>
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |