|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.logging.AbstractLoggable de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm<V> de.lmu.ifi.dbs.elki.algorithm.clustering.correlation.COPAA<V>
V
- the type of RealVector handled by this Algorithmpublic class COPAA<V extends RealVector<V,?>>
Algorithm to partition a database according to the correlation dimension of its objects and to then perform an arbitrary algorithm over the partitions.
Field Summary | |
---|---|
protected ClassParameter |
PARTITION_ALGORITHM_PARAM
Parameter to specify the algorithm to apply to each partition, must extend Algorithm . |
private ClassParameter<Database> |
PARTITION_DB_PARAM
Parameter to specify the database class for each partition, must extend Database . |
protected Algorithm<V> |
partitionAlgorithm
Holds the partitioning algorithm. |
protected Class<Database<V>> |
partitionDatabase
Holds the class of the partition databases. |
protected String[] |
partitionDatabaseParameters
Holds the parameters of the partition databases. |
protected HiCOPreprocessor<V> |
preprocessor
Holds the preprocessor. |
private ClassParameter<HiCOPreprocessor> |
PREPROCESSOR_PARAM
Parameter to specify the preprocessor to derive partition criterion, must extend HiCOPreprocessor . |
private PartitionResults<V> |
result
Holds the result. |
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 | |
---|---|
COPAA()
Sets the specific parameters additionally to the parameters set by the super-class. |
Method Summary | |
---|---|
String |
description()
Returns a description of the class and the required parameters. |
List<AttributeSettings> |
getAttributeSettings()
Returns the parameter setting of the attributes. |
Description |
getDescription()
Returns a description of the algorithm. |
Algorithm<V> |
getPartitionAlgorithm()
Returns the the partitioning algorithm. |
Result<V> |
getResult()
Returns the result of the algorithm. |
protected void |
runInTime(Database<V> database)
The run method encapsulated in measure of runtime. |
protected PartitionResults<V> |
runPartitionAlgorithm(Database<V> database,
Map<Integer,List<Integer>> partitionMap)
Runs the partition algorithm and creates the result. |
String[] |
setParameters(String[] args)
Passes remaining parameters first to the partition algorithm, then to the preprocessor. |
Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm |
---|
isTime, isVerbose, run, setTime, setVerbose |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
---|
addOption, checkGlobalParameterConstraints, deleteOption, description, description, 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, getParameters, getPossibleOptions, inlineDescription |
Field Detail |
---|
private final ClassParameter<HiCOPreprocessor> PREPROCESSOR_PARAM
HiCOPreprocessor
.
Key: -copaa.preprocessor
protected final ClassParameter PARTITION_ALGORITHM_PARAM
Algorithm
.
Key: -copaa.partitionAlgorithm
private final ClassParameter<Database> PARTITION_DB_PARAM
Database
.
Key: -copaa.partitionDB
protected HiCOPreprocessor<V extends RealVector<V,?>> preprocessor
protected Algorithm<V extends RealVector<V,?>> partitionAlgorithm
protected Class<Database<V extends RealVector<V,?>>> partitionDatabase
protected String[] partitionDatabaseParameters
private PartitionResults<V extends RealVector<V,?>> result
Constructor Detail |
---|
public COPAA()
Method Detail |
---|
protected void runInTime(Database<V> database) throws IllegalStateException
AbstractAlgorithm
runInTime
in class AbstractAlgorithm<V extends RealVector<V,?>>
database
- the database to run the algorithm on
IllegalStateException
- if the algorithm has not been initialized
properly (e.g. the setParameters(String[]) method has been failed
to be called).Algorithm.run(de.lmu.ifi.dbs.elki.database.Database)
public Result<V> getResult()
Algorithm
Algorithm.getResult()
public Description getDescription()
Algorithm
Algorithm.getDescription()
public Algorithm<V> getPartitionAlgorithm()
public String description()
Parameterizable
description
in interface Parameterizable
description
in class AbstractAlgorithm<V extends RealVector<V,?>>
Parameterizable.description()
public String[] setParameters(String[] args) throws ParameterException
setParameters
in interface Parameterizable
setParameters
in class AbstractAlgorithm<V extends RealVector<V,?>>
args
- parameters to set the attributes accordingly to
ParameterException
- in case of wrong parameter-settingParameterizable.setParameters(String[])
public List<AttributeSettings> getAttributeSettings()
getAttributeSettings
in interface Parameterizable
getAttributeSettings
in class AbstractParameterizable
Parameterizable.getAttributeSettings()
protected PartitionResults<V> runPartitionAlgorithm(Database<V> database, Map<Integer,List<Integer>> partitionMap)
database
- the database to run this algorithm onpartitionMap
- the map of partition IDs to object ids
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |