Class CMM_GTAnalysis


  • public class CMM_GTAnalysis
    extends Object
    • Constructor Detail

      • CMM_GTAnalysis

        public CMM_GTAnalysis​(Clustering trueClustering,
                              ArrayList<DataPoint> points,
                              boolean enableClassMerge)
        Parameters:
        trueClustering - the ground truth clustering
        points - data points
        enableClassMerge - allow class merging (should be set to true on default)
    • Method Detail

      • getConnectionValue

        protected double getConnectionValue​(CMM_GTAnalysis.CMMPoint cmmp,
                                            int clusterID)
        Calculate the connection of a point to a cluster
        Parameters:
        cmmp - the point to calculate the connection for
        clusterID - the corresponding cluster
        Returns:
        the connection value
      • getClassSeparability

        public double getClassSeparability()
        Calculates how well the original clusters are separable. Small values indicate bad separability, values close to 1 indicate good separability
        Returns:
        index of seperability
      • getNoiseSeparability

        public double getNoiseSeparability()
        Calculates how well noise is separable from the given clusters Small values indicate bad separability, values close to 1 indicate good separability
        Returns:
        index of noise separability
      • getModelQuality

        public double getModelQuality()
        Calculates the relative number of errors being caused by the underlying cluster model
        Returns:
        quality of the model
      • getPoint

        protected CMM_GTAnalysis.CMMPoint getPoint​(int index)
        Get CMM internal point
        Parameters:
        index - of the point
        Returns:
        cmm point
      • getGT0Cluster

        protected CMM_GTAnalysis.GTCluster getGT0Cluster​(int index)
        Return cluster
        Parameters:
        index - of the cluster to return
        Returns:
        cluster
      • getNumberOfGT0Classes

        protected int getNumberOfGT0Classes()
        Number of classes/clusters of the new clustering
        Returns:
        number of new clusters
      • getParameterString

        public String getParameterString()
        String with main CMM parameters
        Returns:
        main CMM parameter