Class Ricf

java.lang.Object
edu.cmu.tetrad.sem.Ricf

public class Ricf extends Object
Implements ICF as specified in Drton and Richardson (2003), Iterative Conditional Fitting for Gaussian Ancestral Graph Models, using hints from previous implementations by Drton in the ggm package in R and by Silva in the Purify class. The reason for reimplementing in this case is to take advantage of linear algebra optimizations in the COLT library.
Version:
$Id: $Id
Author:
josephramsey
  • Constructor Details

    • Ricf

      public Ricf()
      Represents the Ricf class. This class provides methods for calculating the Restricted Information Criterion Fusion (RICF) for a given SemGraph.
  • Method Details

    • ricf

      public Ricf.RicfResult ricf(SemGraph mag, ICovarianceMatrix covMatrix, double tolerance)
      Calculates the Restricted Information Criterion Fusion (RICF) for a given SemGraph.
      Parameters:
      mag - The SemGraph object representing the graph to calculate RICF for.
      covMatrix - The ICovarianceMatrix object representing the covariance matrix.
      tolerance - The tolerance value for convergence.
      Returns:
      The RicfResult object containing the results of the RICF calculation.
    • ricf2

      public Ricf.RicfResult ricf2(Graph mag, ICovarianceMatrix covMatrix, double tolerance)
      Same as above but takes a Graph instead of a SemGraph
      Parameters:
      mag - a Graph object
      covMatrix - a ICovarianceMatrix object
      tolerance - a double
      Returns:
      a Ricf.RicfResult object
    • cliques

      public List<List<Node>> cliques(Graph graph)

      cliques.

      Parameters:
      graph - a Graph object
      Returns:
      an enumeration of the cliques of the given graph considered as undirected.