
@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
|
storagerelation| 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.
|
getPreferenceVectordelete, deleteAll, getPageFileStatistics, insert, insertAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPreferenceVectorprotected static final Logging logger
protected double alpha
protected int k
protected void preprocess()
AbstractPreferenceVectorIndexpreprocess 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()
AbstractPreprocessorIndexgetLogger in class AbstractPreprocessorIndex<V extends NumberVector<?,?>,BitSet>public String getLongName()
ResultgetLongName in interface ResultgetLongName in class AbstractIndex<V extends NumberVector<?,?>>public String getShortName()
ResultgetShortName in interface ResultgetShortName in class AbstractIndex<V extends NumberVector<?,?>>