Class DataGraphUtils

java.lang.Object
edu.cmu.tetrad.data.DataGraphUtils

public class DataGraphUtils extends Object
Sundry graph utils that need to be located in the data package to avoid package cycles.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Graph
    randomBifactorModel(int numStructuralNodes, int numStructuralEdges, int numMeasurementsPerLatent, int numLatentMeasuredImpureParents, int numMeasuredMeasuredImpureParents, int numMeasuredMeasuredImpureAssociations)
    First a random single factor model is created with the specified number of latent nodes and latent edges, and impurity structure.
    static Graph
    randomMim(Graph graph, int numMeasurementsPerLatent, int numLatentMeasuredImpureParents, int numMeasuredMeasuredImpureParents, int numMeasuredMeasuredImpureAssociations, boolean arrangeGraph)
     
    static Graph
    randomSingleFactorModel(int numStructuralNodes, int numStructuralEdges, int numMeasurementsPerLatent, int numLatentMeasuredImpureParents, int numMeasuredMeasuredImpureParents, int numMeasuredMeasuredImpureAssociations)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DataGraphUtils

      public DataGraphUtils()
  • Method Details

    • randomSingleFactorModel

      public static Graph randomSingleFactorModel(int numStructuralNodes, int numStructuralEdges, int numMeasurementsPerLatent, int numLatentMeasuredImpureParents, int numMeasuredMeasuredImpureParents, int numMeasuredMeasuredImpureAssociations)
    • randomMim

      public static Graph randomMim(Graph graph, int numMeasurementsPerLatent, int numLatentMeasuredImpureParents, int numMeasuredMeasuredImpureParents, int numMeasuredMeasuredImpureAssociations, boolean arrangeGraph)
    • randomBifactorModel

      public static Graph randomBifactorModel(int numStructuralNodes, int numStructuralEdges, int numMeasurementsPerLatent, int numLatentMeasuredImpureParents, int numMeasuredMeasuredImpureParents, int numMeasuredMeasuredImpureAssociations)
      First a random single factor model is created with the specified number of latent nodes and latent edges, and impurity structure. Then this is converted to a bifactor model by adding new latents and edges.