Class 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
    • 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

      • initHelp

        protected void initHelp()
        Initializes the help strings.
        Overrides:
        initHelp in class adams.flow.container.AbstractContainer
      • names

        public Iterator<String> names()
        Returns all value names that can be used (theoretically).
        Specified by:
        names in interface adams.flow.container.Container
        Specified by:
        names in class adams.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 interface adams.flow.container.Container
        Specified by:
        isValid in class adams.flow.container.AbstractContainer
        Returns:
        true if all the necessary values are available