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 GraphconvertSearchGraph(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 voidLogs the clusters.static ClustersmimClusters(Graph mim) Converts a list of indices into a list of Nodes representing a cluster.static ClusterspartitionToClusters(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
-