Class Cfci
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.oracle.pag.Cfci
- All Implemented Interfaces:
Algorithm,ReturnsBootstrapGraphs,HasKnowledge,HasParameters,TakesIndependenceWrapper,TetradSerializable,Serializable
@Algorithm(name="CFCI",
command="cfci",
algoType=allow_latent_common_causes)
@Bootstrapping
public class Cfci
extends Object
implements Algorithm, HasKnowledge, TakesIndependenceWrapper, ReturnsBootstrapGraphs
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.
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCfci()Constructs a new conservative FCI algorithm.Cfci(IndependenceWrapper test) Constructs a new conservative FCI algorithm with the given independence test. -
Method Summary
Modifier and TypeMethodDescriptionReturns the bootstrap graphs.getComparisonGraph(Graph graph) Returns the comparison graph.Returns the data type that the algorithm can handle.Returns the description of the algorithm.Returns the independence test.Returns the knowledge.Returns the parameters of the algorithm.search(DataModel dataModel, Parameters parameters) Runs the conservative FCI search.voidSets the independence wrapper.voidsetKnowledge(Knowledge knowledge) Sets the knowledge.
-
Constructor Details
-
Cfci
public Cfci()Constructs a new conservative FCI algorithm. -
Cfci
Constructs a new conservative FCI algorithm with the given independence test.- Parameters:
test- the independence test
-
-
Method Details
-
search
Runs the conservative FCI search. -
getComparisonGraph
Returns the comparison graph.- Specified by:
getComparisonGraphin interfaceAlgorithm- Parameters:
graph- The true directed graph, if there is one.- Returns:
- The comparison graph.
-
getDescription
Returns the description of the algorithm.- Specified by:
getDescriptionin interfaceAlgorithm- Returns:
- The description of the algorithm.
-
getDataType
Returns the data type that the algorithm can handle.- Specified by:
getDataTypein interfaceAlgorithm- Returns:
- The data type that the algorithm can handle.
-
getParameters
Returns the parameters of the algorithm.- Specified by:
getParametersin interfaceAlgorithm- Specified by:
getParametersin interfaceHasParameters- Returns:
- The parameters of the algorithm.
-
getKnowledge
Returns the knowledge.- Specified by:
getKnowledgein interfaceHasKnowledge- Returns:
- The knowledge.
-
setKnowledge
Sets the knowledge.- Specified by:
setKnowledgein interfaceHasKnowledge- Parameters:
knowledge- a knowledge object.
-
getIndependenceWrapper
Returns the independence test.- Specified by:
getIndependenceWrapperin interfaceTakesIndependenceWrapper- Returns:
- The independence test.
-
setIndependenceWrapper
Sets the independence wrapper.- Specified by:
setIndependenceWrapperin interfaceTakesIndependenceWrapper- Parameters:
test- the independence wrapper.
-
getBootstrapGraphs
Returns the bootstrap graphs.- Specified by:
getBootstrapGraphsin interfaceReturnsBootstrapGraphs- Returns:
- The bootstrap graphs.
-