|
|
|||||||||||||||||||||
| 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>
V - Vector typepublic 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 OptionID |
ALPHA_ID
OptionID for ALPHA_PARAM |
private DoubleParameter |
ALPHA_PARAM
Alpha parameter |
static double |
DEFAULT_ALPHA
The default value for alpha. |
private Integer |
k
The number of nearest neighbors considered to determine the preference vector. |
static OptionID |
K_ID
OptionID for K_PARAM |
private IntParameter |
K_PARAM
k Parameter |
| 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, logger |
| Constructor Summary | |
|---|---|
HiSCPreprocessor()
Provides a new HiSCPreprocessor that computes the preference vector of objects of a certain database. |
|
| 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 actual preprocessing step of this Preprocessor for the objects of the specified database. |
List<String> |
setParameters(List<String> args)
Grabs all specified options from the option handler. |
String |
shortDescription()
Returns a short description of the class. |
| Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
|---|
addOption, addParameterizable, addParameterizable, checkGlobalParameterConstraints, collectOptions, getAttributeSettings, getParameters, rememberParametersExcept, removeOption, removeParameterizable |
| 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 |
| Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameterizable |
|---|
checkGlobalParameterConstraints, collectOptions, getParameters |
| Field Detail |
|---|
public static final double DEFAULT_ALPHA
public static final OptionID ALPHA_ID
ALPHA_PARAM
private final DoubleParameter ALPHA_PARAM
public static final OptionID K_ID
K_PARAM
private final IntParameter K_PARAM
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 timepublic String shortDescription()
AbstractParameterizable
shortDescription in interface ParameterizableshortDescription in class AbstractParameterizable
public List<String> setParameters(List<String> args)
throws ParameterException
AbstractParameterizable
{
List remainingParameters = super.setParameters(args);
// set parameters for your class
// for example like this:
if(isSet(MY_PARAM_VALUE_PARAM))
{
myParamValue = getParameterValue(MY_PARAM_VALUE_PARAM);
}
.
.
.
return remainingParameters;
// or in case of attributes requesting parameters themselves
// return parameterizableAttribbute.setParameters(remainingParameters);
}
setParameters in interface ParameterizablesetParameters in class AbstractParameterizableargs - parameters to set the attributes accordingly to
ParameterException - in case of wrong parameter-settingpublic 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 | |||||||||||