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.
|
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,
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.
|
getPreferenceVector
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPreferenceVector
private static final Logging LOG
protected double alpha
protected int k
public void initialize()
Index
initialize
in interface Index
private 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()
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<?>>
public void logStatistics()
Index
logStatistics
in interface Index