Class ClusterSignificance

java.lang.Object
edu.cmu.tetrad.search.utils.ClusterSignificance

public class ClusterSignificance extends Object

Provides some methods to check significance of clusters for clustering algroithms. It is assumed that for each cluster there is a single latent that is a parent of all the nodes in the cluster. Significance of these models is returned.

Author:
josephramsey
  • Constructor Details

    • ClusterSignificance

      public ClusterSignificance(List<Node> variables, DataModel dataModel)
  • Method Details

    • variablesForIndices

      public static List<Node> variablesForIndices(List<Integer> cluster, List<Node> variables)
    • variablesForIndices2

      public static List<List<Node>> variablesForIndices2(Set<List<Integer>> clusters, List<Node> _variables)
    • getInts

      public static List<Integer> getInts(int[] indices)
      Converts a list of indices into a list of Integers representing a cluster.
      Parameters:
      indices - The indices of the variables.
      Returns:
      The extracted index list.
    • printClusterPValues

      public void printClusterPValues(Set<List<Integer>> out)
    • setCheckType

      public void setCheckType(ClusterSignificance.CheckType checkType)
    • significant

      public boolean significant(List<Integer> cluster, double alpha)
    • getModelPValue

      public double getModelPValue(List<List<Integer>> clusters)