|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.preprocessing.HiSCPreprocessor<V>
V - the type of NumberVector handled by the preprocessor@Title(value="HiSC Preprocessor") @Description(value="Computes the preference vector of objects of a certain database according to the HiSC algorithm.") public class HiSCPreprocessor<V extends NumberVector<V,?>>
Preprocessor for HiSC preference vector assignment to objects of a certain database.
HiSC| Field Summary | |
|---|---|
private double |
alpha
Holds the value of parameter ALPHA_PARAM. |
static OptionID |
ALPHA_ID
OptionID for ALPHA_PARAM |
private DoubleParameter |
ALPHA_PARAM
The maximum absolute variance along a coordinate axis. |
static double |
DEFAULT_ALPHA
The default value for alpha. |
private Integer |
k
Holds the value of parameter K_PARAM. |
static OptionID |
K_ID
OptionID for K_PARAM. |
private IntParameter |
K_PARAM
The number of nearest neighbors considered to determine the preference vector. |
| Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debug, logger |
| Constructor Summary | |
|---|---|
HiSCPreprocessor(Parameterization config)
Constructor, adhering to Parameterizable |
|
| Method Summary | |
|---|---|
private BitSet |
determinePreferenceVector(Database<V> database,
Integer id,
List<Integer> neighborIDs,
StringBuffer msg)
Determines the preference vector according to the specified neighbor ids. |
double |
getAlpha()
Returns the value of the alpha parameter (i.e. the maximum allowed variance along a coordinate axis). |
int |
getK()
Returns the value of the k parameter (i.e. the number of nearest neighbors considered to determine the preference vector). |
void |
run(Database<V> database,
boolean verbose,
boolean time)
This method executes the particular preprocessing step of this Preprocessor for the objects of the specified database. |
| Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double DEFAULT_ALPHA
public static final OptionID ALPHA_ID
ALPHA_PARAM
private final DoubleParameter ALPHA_PARAM
Default value: DEFAULT_ALPHA
Key: -hisc.alpha
private double alpha
ALPHA_PARAM.
public static final OptionID K_ID
K_PARAM.
private final IntParameter K_PARAM
Key: -hisc.k
Default value: three times of the dimensionality of the database objects
private Integer k
K_PARAM.
| Constructor Detail |
|---|
public HiSCPreprocessor(Parameterization config)
Parameterizable
config - Parameterization| Method Detail |
|---|
public void run(Database<V> database,
boolean verbose,
boolean time)
Preprocessor
run in interface Preprocessor<V extends NumberVector<V,?>>database - the database for which the preprocessing is performedverbose - flag to allow verbose messages while performing the
algorithmtime - flag to request output of performance timepublic double getAlpha()
public int getK()
private BitSet determinePreferenceVector(Database<V> database,
Integer id,
List<Integer> neighborIDs,
StringBuffer msg)
database - 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
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||