Class Cfci
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.oracle.pag.Cfci
- All Implemented Interfaces:
- Algorithm,- ReturnsBootstrapGraphs,- TakesCovarianceMatrix,- HasKnowledge,- HasParameters,- TakesIndependenceWrapper,- TetradSerializable,- Serializable
@Algorithm(name="CFCI",
           command="cfci",
           algoType=allow_latent_common_causes)
@Bootstrapping
public class Cfci
extends AbstractBootstrapAlgorithm
implements Algorithm, HasKnowledge, TakesIndependenceWrapper, ReturnsBootstrapGraphs, TakesCovarianceMatrix
Conservative FCI. This is a wrapper for the CFCI algorithm in Tetrad, which is conservative in the same sense as CPC,
 Conservative PC. That is, it checks, for triple <X, Y, Z>, whether orienting colliders or noncoliders can be
 done unambiguously. If not, it leaves the edge undirected. It is also similar to FCI in that it allows for latent
 common causes.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCfci()Constructs a new conservative FCI algorithm.Cfci(IndependenceWrapper test) Constructs a new conservative FCI algorithm with the given independence test.
- 
Method SummaryModifier and TypeMethodDescriptiongetComparisonGraph(Graph graph) Retrieves the comparison graph by converting the given true directed graph into a partially directed graph (PAG) using the DAG to PAG transformation.Retrieves the data type required by the search algorithm.Returns the description of the algorithm.Retrieves the IndependenceWrapper used by the algorithm.Returns the knowledge.Returns the list of parameters used by the algorithm.runSearch(DataModel dataModel, Parameters parameters) Runs the search algorithm to discover the causal graph.voidSets the independence wrapper for the algorithm.voidsetKnowledge(Knowledge knowledge) Sets the knowledge object for the algorithm.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithmgetBootstrapGraphs, searchMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.algcomparison.algorithm.ReturnsBootstrapGraphsgetBootstrapGraphs
- 
Constructor Details- 
Cfcipublic Cfci()Constructs a new conservative FCI algorithm.
- 
CfciConstructs a new conservative FCI algorithm with the given independence test.- Parameters:
- test- the independence test
 
 
- 
- 
Method Details- 
runSearchRuns the search algorithm to discover the causal graph.- Parameters:
- dataModel- The data model used for the search.
- parameters- The parameters for the search algorithm.
- Returns:
- The discovered causal graph.
- Throws:
- IllegalArgumentException- if the data model is not an instance of DataSet when time lag is specified.
- InterruptedException
 
- 
getComparisonGraphRetrieves the comparison graph by converting the given true directed graph into a partially directed graph (PAG) using the DAG to PAG transformation.- Specified by:
- getComparisonGraphin interface- Algorithm
- Parameters:
- graph- The true directed graph, if there is one.
- Returns:
- The comparison graph as a partially directed graph (PAG).
 
- 
getDescriptionReturns the description of the algorithm.- Specified by:
- getDescriptionin interface- Algorithm
- Returns:
- The description of the algorithm.
 
- 
getDataTypeRetrieves the data type required by the search algorithm.- Specified by:
- getDataTypein interface- Algorithm
- Returns:
- The data type required by the search algorithm.
 
- 
getParametersReturns the list of parameters used by the algorithm.- Specified by:
- getParametersin interface- HasParameters
- Returns:
- The list of parameters used by the algorithm.
 
- 
getKnowledgeReturns the knowledge.- Specified by:
- getKnowledgein interface- HasKnowledge
- Returns:
- The knowledge.
 
- 
setKnowledgeSets the knowledge object for the algorithm.- Specified by:
- setKnowledgein interface- HasKnowledge
- Parameters:
- knowledge- a knowledge object
 
- 
getIndependenceWrapperRetrieves the IndependenceWrapper used by the algorithm.- Specified by:
- getIndependenceWrapperin interface- TakesIndependenceWrapper
- Returns:
- The IndependenceWrapper object.
 
- 
setIndependenceWrapperSets the independence wrapper for the algorithm.- Specified by:
- setIndependenceWrapperin interface- TakesIndependenceWrapper
- Parameters:
- test- the independence wrapper to set
 
 
-