Package adams.flow.container
Class WekaClusteringContainer
- java.lang.Object
-
- adams.flow.container.AbstractContainer
-
- adams.flow.container.WekaClusteringContainer
-
- All Implemented Interfaces:
adams.core.CloneHandler<adams.flow.container.Container>
,adams.core.GlobalInfoSupporter
,adams.data.spreadsheet.SpreadSheetSupporter
,adams.flow.container.Container
,Serializable
public class WekaClusteringContainer extends adams.flow.container.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.
-
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).
-
-
-
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 classadams.flow.container.AbstractContainer
-
names
public Iterator<String> names()
Returns all value names that can be used (theoretically).- Specified by:
names
in interfaceadams.flow.container.Container
- Specified by:
names
in classadams.flow.container.AbstractContainer
- Returns:
- enumeration over all possible value names
-
isValid
public boolean isValid()
Checks whether the setup of the container is valid.- Specified by:
isValid
in interfaceadams.flow.container.Container
- Specified by:
isValid
in classadams.flow.container.AbstractContainer
- Returns:
- true if all the necessary values are available
-
-