Package adams.flow.container
Class WekaClusteringContainer
- java.lang.Object
-
- adams.flow.container.AbstractContainer
-
- adams.flow.container.WekaClusteringContainer
-
- All Implemented Interfaces:
CloneHandler<Container>
,GlobalInfoSupporter
,SpreadSheetSupporter
,Container
,Serializable
public class WekaClusteringContainer extends AbstractContainer
A container for clusterings made by a clusterer.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
VALUE_CLUSTER
the identifier for the Cluster.static String
VALUE_DISTRIBUTION
the identifier for the Distribution.static String
VALUE_INSTANCE
the identifier for the Instance.static String
VALUE_LOGDENSITY
the identifier for the LogDensity.static String
VALUE_LOGDENSITYPERCLUSTER
the identifier for the LogDensityPerCluster.static String
VALUE_LOGJOINTDENSITIES
the identifier for the LogJointDensities.-
Fields inherited from class adams.flow.container.AbstractContainer
m_AdditionalNames, m_Help, m_Values
-
-
Constructor Summary
Constructors Constructor Description WekaClusteringContainer()
Initializes the container.WekaClusteringContainer(weka.core.Instance inst, int cluster, double[] dist)
Initializes the container.WekaClusteringContainer(weka.core.Instance inst, int cluster, double[] dist, double logDensity, double[] logDensityPerCluster, double[] logJointDensities)
Initializes the container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initHelp()
Initializes the help strings.boolean
isValid()
Checks whether the setup of the container is valid.Iterator<String>
names()
Returns all value names that can be used (theoretically).-
Methods inherited from class adams.flow.container.AbstractContainer
addAdditionalName, addHelp, addHelp, addHelp, checkDefaultConstructor, getClone, getHelp, getValue, getValue, globalInfo, hasHelp, hasValue, isValidName, removeAdditionalName, setValue, store, stored, toSpreadSheet, toString
-
-
-
-
Field Detail
-
VALUE_INSTANCE
public static final String VALUE_INSTANCE
the identifier for the Instance.- See Also:
- Constant Field Values
-
VALUE_CLUSTER
public static final String VALUE_CLUSTER
the identifier for the Cluster.- See Also:
- Constant Field Values
-
VALUE_DISTRIBUTION
public static final String VALUE_DISTRIBUTION
the identifier for the Distribution.- See Also:
- Constant Field Values
-
VALUE_LOGDENSITY
public static final String VALUE_LOGDENSITY
the identifier for the LogDensity.- See Also:
- Constant Field Values
-
VALUE_LOGDENSITYPERCLUSTER
public static final String VALUE_LOGDENSITYPERCLUSTER
the identifier for the LogDensityPerCluster.- See Also:
- Constant Field Values
-
VALUE_LOGJOINTDENSITIES
public static final String VALUE_LOGJOINTDENSITIES
the identifier for the LogJointDensities.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WekaClusteringContainer
public WekaClusteringContainer()
Initializes the container.
Only used for generating help information.
-
WekaClusteringContainer
public WekaClusteringContainer(weka.core.Instance inst, int cluster, double[] dist)
Initializes the container.- Parameters:
inst
- the instance that was used for predictiondist
- the cluster distributioncluster
- the chosen cluster
-
WekaClusteringContainer
public WekaClusteringContainer(weka.core.Instance inst, int cluster, double[] dist, double logDensity, double[] logDensityPerCluster, double[] logJointDensities)
Initializes the container.- Parameters:
inst
- the instance that was used for predictioncluster
- the chosen clusterdist
- the cluster distributionlogDensity
- the log densitylogDensityPerCluster
- the log density per clusterlogJointDensities
- the log joint densities
-
-
Method Detail
-
initHelp
protected void initHelp()
Initializes the help strings.- Overrides:
initHelp
in classAbstractContainer
-
names
public Iterator<String> names()
Returns all value names that can be used (theoretically).- Specified by:
names
in interfaceContainer
- Specified by:
names
in classAbstractContainer
- Returns:
- enumeration over all possible value names
-
isValid
public boolean isValid()
Checks whether the setup of the container is valid.- Specified by:
isValid
in interfaceContainer
- Specified by:
isValid
in classAbstractContainer
- Returns:
- true if all the necessary values are available
-
-