public abstract class SingleClustererEnhancer extends AbstractClusterer implements OptionHandler
Modifier and Type | Field and Description |
---|---|
protected Clusterer |
m_Clusterer
the clusterer
|
Constructor and Description |
---|
SingleClustererEnhancer() |
Modifier and Type | Method and Description |
---|---|
String |
clustererTipText()
Returns the tip text for this property
|
protected String |
defaultClustererString()
String describing default clusterer.
|
Capabilities |
getCapabilities()
Returns default capabilities of the clusterer.
|
Clusterer |
getClusterer()
Get the clusterer used as the base clusterer.
|
protected String |
getClustererSpec()
Gets the clusterer specification string, which contains the class name of
the clusterer and any options to the clusterer
|
String[] |
getOptions()
Gets the current settings of the clusterer.
|
Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
int |
numberOfClusters()
Returns the number of clusters.
|
void |
setClusterer(Clusterer value)
Set the base clusterer.
|
void |
setOptions(String[] options)
Parses a given list of options.
|
buildClusterer, clusterInstance, distributionForInstance, forName, getRevision, makeCopies, makeCopy, runClusterer
protected Clusterer m_Clusterer
protected String defaultClustererString()
public Enumeration listOptions()
listOptions
in interface OptionHandler
public void setOptions(String[] options) throws Exception
setOptions
in interface OptionHandler
options
- the list of options as an array of stringsException
- if an option is not supportedpublic String[] getOptions()
getOptions
in interface OptionHandler
public String clustererTipText()
public void setClusterer(Clusterer value)
value
- the classifier to use.public Clusterer getClusterer()
protected String getClustererSpec()
public Capabilities getCapabilities()
getCapabilities
in interface Clusterer
getCapabilities
in interface CapabilitiesHandler
getCapabilities
in class AbstractClusterer
Capabilities
public int numberOfClusters() throws Exception
numberOfClusters
in interface Clusterer
numberOfClusters
in class AbstractClusterer
Exception
- if number of clusters could not be returned
successfullyCopyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.