|
|
|||||||||||||||||||||
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.utilities.optionhandling.AbstractParameterizable
de.lmu.ifi.dbs.elki.preprocessing.HiSCPreprocessor<V>
public class HiSCPreprocessor<V extends RealVector<V,?>>
Preprocessor for HiSC preference vector assignment to objects of a certain database.
Field Summary | |
---|---|
private double |
alpha
The maximum allowed variance along a coordinate axis. |
static String |
ALPHA_D
Description for parameter alpha. |
static String |
ALPHA_P
Option string for parameter alpha. |
static double |
DEFAULT_ALPHA
The default value for alpha. |
private Integer |
k
The number of nearest neighbors considered to determine the preference vector. |
static String |
K_D
Description for parameter k. |
static String |
K_P
Option string for parameter k. |
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
---|
optionHandler |
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debug |
Constructor Summary | |
---|---|
HiSCPreprocessor()
Provides a new HiSCPreprocessor that computes the preference vector of objects of a certain database. |
Method Summary | |
---|---|
String |
description()
Returns a description of the class and the required parameters. |
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 actual preprocessing step of this Preprocessor for the objects of the specified database. |
String[] |
setParameters(String[] args)
Sets the attributes of the class accordingly to the given parameters. |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
---|
addOption, checkGlobalParameterConstraints, deleteOption, description, description, getAttributeSettings, getParameters, getParameterValue, getPossibleOptions, inlineDescription, isSet, setParameters |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debugFine, debugFiner, debugFinest, exception, message, progress, progress, progress, verbose, verbose, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameterizable |
---|
checkGlobalParameterConstraints, getAttributeSettings, getParameters, getPossibleOptions, inlineDescription |
Field Detail |
---|
public static final double DEFAULT_ALPHA
public static final String ALPHA_P
public static String ALPHA_D
public static final String K_P
public static final String K_D
private double alpha
private Integer k
Constructor Detail |
---|
public HiSCPreprocessor()
Method Detail |
---|
public void run(Database<V> database, boolean verbose, boolean time)
Preprocessor
run
in interface Preprocessor<V extends RealVector<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 timePreprocessor.run(de.lmu.ifi.dbs.elki.database.Database, boolean, boolean)
public String description()
Parameterizable
description
in interface Parameterizable
description
in class AbstractParameterizable
Parameterizable.description()
public String[] setParameters(String[] args) throws ParameterException
Parameterizable
setParameters
in interface Parameterizable
setParameters
in class AbstractParameterizable
args
- parameters to set the attributes accordingly to
ParameterException
- in case of wrong parameter-settingParameterizable.setParameters(String[])
public 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 |