Package adams.flow.container
Class MOAClusteringContainer
- java.lang.Object
-
- adams.flow.container.AbstractContainer
-
- adams.flow.container.MOAClusteringContainer
-
- All Implemented Interfaces:
adams.core.CloneHandler<adams.flow.container.Container>,adams.core.GlobalInfoSupporter,adams.data.spreadsheet.SpreadSheetSupporter,adams.flow.container.Container,Serializable
public class MOAClusteringContainer extends adams.flow.container.AbstractContainerA container for clusterings made by a clusterer.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz), Corey Sterling (coreytsterling at gmail dot com)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringVALUE_CLUSTERthe identifier for the Cluster.static StringVALUE_DISTRIBUTIONthe identifier for the Distribution.static StringVALUE_INSTANCEthe identifier for the Instance.static StringVALUE_LOGDENSITYthe identifier for the LogDensity.static StringVALUE_LOGDENSITYPERCLUSTERthe identifier for the LogDensityPerCluster.static StringVALUE_LOGJOINTDENSITIESthe identifier for the LogJointDensities.
-
Constructor Summary
Constructors Constructor Description MOAClusteringContainer()Initializes the container.MOAClusteringContainer(com.yahoo.labs.samoa.instances.Instance inst, int cluster, double[] dist)Initializes the container.MOAClusteringContainer(com.yahoo.labs.samoa.instances.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 voidinitHelp()Initializes the help strings.booleanisValid()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
-
MOAClusteringContainer
public MOAClusteringContainer()
Initializes the container.
Only used for generating help information.
-
MOAClusteringContainer
public MOAClusteringContainer(com.yahoo.labs.samoa.instances.Instance inst, int cluster, double[] dist)Initializes the container.- Parameters:
inst- the instance that was used for predictiondist- the cluster distributioncluster- the chosen cluster
-
MOAClusteringContainer
public MOAClusteringContainer(com.yahoo.labs.samoa.instances.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:
initHelpin classadams.flow.container.AbstractContainer
-
names
public Iterator<String> names()
Returns all value names that can be used (theoretically).- Specified by:
namesin interfaceadams.flow.container.Container- Specified by:
namesin 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:
isValidin interfaceadams.flow.container.Container- Specified by:
isValidin classadams.flow.container.AbstractContainer- Returns:
- true if all the necessary values are available
-
-