Package edu.cmu.tetrad.search.utils
Class ClusterUtils
java.lang.Object
edu.cmu.tetrad.search.utils.ClusterUtils
Provides some general utilities for dealing with clustering input and output.
The method of this class are used only internally and so are not documented for public use.
- Version:
- $Id: $Id
- Author:
- josephramsey
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionclustersToPartition
(Clusters clusters, List<Node> variables) Converts a list of indices into a list of Nodes representing a cluster.static List
<int[]> Converts a list of indices into a list of Nodes representing a cluster.static Graph
convertSearchGraph
(List<int[]> clusters, String[] varNames) Converts a list of indices into a list of Nodes representing a cluster.generateLatentNames
(int total) Generates a list of latent variable names.static void
Logs the clusters.static Clusters
mimClusters
(Graph mim) Converts a list of indices into a list of Nodes representing a cluster.static Clusters
partitionToClusters
(List<List<Node>> partition) Converts a list of indices into a list of Nodes representing a cluster.
-
Field Details
-
LATENT_PREFIX
-
-
Method Details
-
convertListToInt
-
clustersToPartition
-
partitionToClusters
-
convertSearchGraph
-
mimClusters
-
logClusters
-
generateLatentNames
-