@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<?,?>> extends AbstractPreferenceVectorIndex<V> implements PreferenceVectorIndex<V>
HiSC
Modifier and Type | Class and Description |
---|---|
static class |
HiSCPreferenceVectorIndex.Factory<V extends NumberVector<?,?>>
Factory class
|
Modifier and Type | Field and Description |
---|---|
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
|
storage
relation
Constructor and Description |
---|
HiSCPreferenceVectorIndex(Relation<V> relation,
double alpha,
int k)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getPreferenceVector
delete, deleteAll, getPageFileStatistics, insert, insertAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPreferenceVector
protected static final Logging logger
protected double alpha
protected int k
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 messagesprotected 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<?,?>>