Class WekaClusteringContainer

    • 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

      • isValid

        public boolean isValid()
        Checks whether the setup of the container is valid.
        Specified by:
        isValid in interface Container
        Specified by:
        isValid in class AbstractContainer
        Returns:
        true if all the necessary values are available