Package edu.cmu.tetrad.search.utils
Class ClusterSignificance
java.lang.Object
edu.cmu.tetrad.search.utils.ClusterSignificance
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.
- Version:
- $Id: $Id
- Author:
- josephramsey
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Gives the options for checking significance of clusters--could check the significance using a regression model, or could check to see if the cluster is a clique, or could not do the check. -
Constructor Summary
ConstructorsConstructorDescriptionClusterSignificance
(List<Node> variables, DataModel dataModel) Constructs a new cluster significance object. -
Method Summary
Modifier and TypeMethodDescriptiongetInts
(int[] indices) Converts a list of indices into a list of Integers representing a cluster.double
getModelPValue
(List<List<Integer>> clusters) Returns the p-value for the given cluster.void
printClusterPValues
(Set<List<Integer>> clusters) Prints the p-values for the given clusters.void
setCheckType
(ClusterSignificance.CheckType checkType) Sets the type of check to perform.boolean
significant
(List<Integer> cluster, double alpha) Returns the p-value for the given cluster.variablesForIndices
(List<Integer> cluster, List<Node> variables) Converts a list of indices into a list of Nodes representing a cluster.Converts a list of indices into a list of Nodes representing a cluster.
-
Constructor Details
-
ClusterSignificance
-
-
Method Details
-
variablesForIndices
-
variablesForIndices2
-
getInts
-
printClusterPValues
-
setCheckType
Sets the type of check to perform.- Parameters:
checkType
- The type of check.- See Also:
-
significant
-
getModelPValue
-