adams.flow.container
Class WekaClusteringContainer

java.lang.Object
  extended by adams.flow.container.AbstractContainer
      extended by adams.flow.container.WekaClusteringContainer
All Implemented Interfaces:
CloneHandler<AbstractContainer>, Serializable

public class WekaClusteringContainer
extends AbstractContainer

A container for clusterings made by a clusterer.

Version:
$Revision: 4584 $
Author:
fracpete (fracpete at waikato dot ac dot nz)
See Also:
Serialized Form

Field Summary
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_Values
 
Constructor Summary
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
 boolean isValid()
          Checks whether the setup of the container is valid.
 Enumeration<String> names()
          Returns all value names that can be used (theoretically).
 
Methods inherited from class adams.flow.container.AbstractContainer
addAdditionalName, checkDefaultConstructor, getClone, getValue, hasValue, isValidName, removeAdditionalName, setValue, store, stored, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 prediction
dist - the cluster distribution
cluster - 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 prediction
cluster - the chosen cluster
dist - the cluster distribution
logDensity - the log density
logDensityPerCluster - the log density per cluster
logJointDensities - the log joint densities
Method Detail

names

public Enumeration<String> names()
Returns all value names that can be used (theoretically).

Specified by:
names in class 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 class AbstractContainer
Returns:
true if all the necessary values are available


Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.