
V - Vector type@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.
|
private static Logging |
LOG
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,
DBIDRef id,
DBIDs neighborIDs,
StringBuilder 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.
|
void |
initialize()
Initialize the index.
|
void |
logStatistics()
Send statistics to the logger, if enabled.
|
getPreferenceVectorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPreferenceVectorprivate static final Logging LOG
protected double alpha
protected int k
public void initialize()
Indexinitialize in interface Indexprivate BitSet determinePreferenceVector(Relation<V> relation, DBIDRef id, DBIDs neighborIDs, StringBuilder 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<?>>public void logStatistics()
IndexlogStatistics in interface Index