Package edu.cmu.tetrad.sem
Class Ricf
java.lang.Object
edu.cmu.tetrad.sem.Ricf
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The fit con graph result.static class
RICF result. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncliques.ricf
(SemGraph mag, ICovarianceMatrix covMatrix, double tolerance) Calculates the Restricted Information Criterion Fusion (RICF) for a given SemGraph.ricf2
(Graph mag, ICovarianceMatrix covMatrix, double tolerance) Same as above but takes a Graph instead of a SemGraph
-
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
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
Same as above but takes a Graph instead of a SemGraph- Parameters:
mag
- aGraph
objectcovMatrix
- aICovarianceMatrix
objecttolerance
- a double- Returns:
- a
Ricf.RicfResult
object
-
cliques
cliques.
- Parameters:
graph
- aGraph
object- Returns:
- an enumeration of the cliques of the given graph considered as undirected.
-