|
|
|||||||||||||||||||||
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.subspace.ProjectedClustering<V>
V
- the type of Realvector handled by this Algorithmpublic abstract class ProjectedClustering<V extends RealVector<V,?>>
Abstract superclass for PROCLUS and ORCLUS.
Field Summary | |
---|---|
private EuklideanDistanceFunction<V> |
distanceFunction
The euklidean distance function. |
private int |
k
Number of clusters. |
private int |
k_i
Multiplier for initial number of seeds. |
static OptionID |
K_I_ID
OptionID for K_I_PARAM |
private IntParameter |
K_I_PARAM
Parameter to specify the multiplier for the initial number of seeds, must be an integer greater than 0. |
static OptionID |
K_ID
OptionID for K_PARAM |
private IntParameter |
K_PARAM
Parameter to specify the number of clusters to find, must be an integer greater than 0. |
private int |
l
Dimensionality of the clusters. |
static OptionID |
L_ID
OptionID for L_PARAM |
private IntParameter |
L_PARAM
Parameter to specify the dimensionality of the clusters to find, must be an integer greater than 0. |
private Clusters<V> |
result
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 | |
---|---|
ProjectedClustering()
Sets the parameter k and l the optionhandler additionally to the parameters provided by super-classes. |
Method Summary | |
---|---|
protected EuklideanDistanceFunction<V> |
getDistanceFunction()
Returns the distance function. |
protected int |
getK_i()
Returns the value of parameter k_i. |
protected int |
getK()
Returns the value of parameter k. |
protected int |
getL()
Returns the value of parameter l. |
Clusters<V> |
getResult()
Returns the result of the algorithm. |
String[] |
setParameters(String[] args)
Grabs all specified options from the option handler and sets the values for the flags AbstractAlgorithm.VERBOSE_FLAG and AbstractAlgorithm.TIME_FLAG . |
protected void |
setResult(Clusters<V> result)
Sets the result of this algorithm. |
Methods inherited from class de.lmu.ifi.dbs.elki.algorithm.AbstractAlgorithm |
---|
description, isTime, isVerbose, run, runInTime, setTime, setVerbose |
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.algorithm.Algorithm |
---|
getDescription, run, setTime, setVerbose |
Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameterizable |
---|
checkGlobalParameterConstraints, description, getAttributeSettings, getParameters, getPossibleOptions, inlineDescription |
Field Detail |
---|
public static final OptionID K_ID
K_PARAM
public static final OptionID K_I_ID
K_I_PARAM
public static final OptionID L_ID
L_PARAM
private final IntParameter K_PARAM
Key: -projectedclustering.k
private final IntParameter K_I_PARAM
Default value: 30
Key: -projectedclustering.k_i
private final IntParameter L_PARAM
Key: -projectedclustering.l
private int k
private int k_i
private int l
private EuklideanDistanceFunction<V extends RealVector<V,?>> distanceFunction
private Clusters<V extends RealVector<V,?>> result
Constructor Detail |
---|
public ProjectedClustering()
Method Detail |
---|
public String[] setParameters(String[] args) throws ParameterException
AbstractAlgorithm
AbstractAlgorithm.VERBOSE_FLAG
and AbstractAlgorithm.TIME_FLAG
.
Any extending class should
call this method first and return the returned array without further
changes, but after setting further required parameters. An example for
overwritting this method taking advantage from the previously (in
superclasses) defined options would be:
{ String[] 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 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 Clusters<V> getResult()
Algorithm
getResult
in interface Algorithm<V extends RealVector<V,?>>
getResult
in interface Clustering<V extends RealVector<V,?>>
Clustering.getResult()
protected EuklideanDistanceFunction<V> getDistanceFunction()
protected int getK()
protected int getK_i()
protected int getL()
protected void setResult(Clusters<V> result)
result
- the result to be set
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |