|
|
|||||||||||||||||||||
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.HiCOPreprocessor<V>
de.lmu.ifi.dbs.elki.preprocessing.KnnQueryBasedHiCOPreprocessor<V>
V
- Vector typepublic class KnnQueryBasedHiCOPreprocessor<V extends RealVector<V,?>>
Computes the HiCO correlation dimension of objects of a certain database. The PCA is based on k nearest neighbor queries.
Field Summary | |
---|---|
private Integer |
k
Holds the value of parameter k. |
private IntParameter |
K_PARAM
Optional parameter to specify the number of nearest neighbors considered in the PCA, must be an integer greater than 0. |
static OptionID |
KNN_HICO_PREPROCESSOR_K
OptionID for K_PARAM |
Fields inherited from class de.lmu.ifi.dbs.elki.preprocessing.HiCOPreprocessor |
---|
DEFAULT_PCA_DISTANCE_FUNCTION, PCA_DISTANCE_ID, PCA_DISTANCE_PARAM, pcaDistanceFunction |
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 | |
---|---|
KnnQueryBasedHiCOPreprocessor()
Provides a new Preprocessor that computes the correlation dimension of objects of a certain database based on a k nearest neighbor query. |
Method Summary | |
---|---|
protected List<Integer> |
objectIDsForPCA(Integer id,
Database<V> database,
boolean verbose,
boolean time)
Returns the ids of the objects stored in the specified database to be considered within the PCA for the specified object id. |
protected List<DistanceResultPair<DoubleDistance>> |
resultsForPCA(Integer id,
Database<V> database,
boolean verbose,
boolean time)
Returns the ids of the objects and distances stored in the specified database to be considered within the PCA for the specified object id. |
List<String> |
setParameters(List<String> args)
Sets the value for the parameter k. |
String |
shortDescription()
Returns a short description of the class. |
Methods inherited from class de.lmu.ifi.dbs.elki.preprocessing.HiCOPreprocessor |
---|
run |
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 OptionID KNN_HICO_PREPROCESSOR_K
K_PARAM
private final IntParameter K_PARAM
Key: -hicopreprocessor.k
Default value: three times of the dimensionality of the database objects
private Integer k
Constructor Detail |
---|
public KnnQueryBasedHiCOPreprocessor()
Method Detail |
---|
protected List<Integer> objectIDsForPCA(Integer id, Database<V> database, boolean verbose, boolean time)
HiCOPreprocessor
objectIDsForPCA
in class HiCOPreprocessor<V extends RealVector<V,?>>
id
- the id of the object for which a PCA should be performeddatabase
- the database holding the objectsverbose
- flag to allow verbose messages while performing the
algorithmtime
- flag to request output of performance time
protected List<DistanceResultPair<DoubleDistance>> resultsForPCA(Integer id, Database<V> database, boolean verbose, boolean time)
HiCOPreprocessor
resultsForPCA
in class HiCOPreprocessor<V extends RealVector<V,?>>
id
- the id of the object for which a PCA should be performeddatabase
- the database holding the objectsverbose
- flag to allow verbose messages while performing the
algorithmtime
- flag to request output of performance time
public List<String> setParameters(List<String> args) throws ParameterException
setParameters
in interface Parameterizable
setParameters
in class HiCOPreprocessor<V extends RealVector<V,?>>
args
- parameters to set the attributes accordingly to
ParameterException
- in case of wrong parameter-settingpublic String shortDescription()
AbstractParameterizable
shortDescription
in interface Parameterizable
shortDescription
in class AbstractParameterizable
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |