Class Fci
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.oracle.pag.Fci
- All Implemented Interfaces:
Algorithm
,ReturnsBootstrapGraphs
,TakesCovarianceMatrix
,HasKnowledge
,HasParameters
,TakesIndependenceWrapper
,TetradSerializable
,Serializable
@Algorithm(name="FCI",
command="fci",
algoType=allow_latent_common_causes)
@Bootstrapping
public class Fci
extends AbstractBootstrapAlgorithm
implements Algorithm, HasKnowledge, TakesIndependenceWrapper, ReturnsBootstrapGraphs, TakesCovarianceMatrix
The Fast Causal Inference (FCI) algorithm.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph
(Graph graph) Returns the comparison graph based on the true directed graph, if there is one.Returns the data type that the search requires, whether continuous, discrete, or mixed.Returns a short, one-line description of this algorithm.Retrieves theIndependenceWrapper
object associated with this method.Retrieves the knowledge object.Retrieves the list of parameters used by this algorithm.runSearch
(DataModel dataModel, Parameters parameters) Runs a search algorithm to find a graph based on the given data model and parameters.void
Sets the IndependenceWrapper object associated with this method.void
setKnowledge
(Knowledge knowledge) Sets the knowledge object for this method.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
getBootstrapGraphs, search
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.cmu.tetrad.algcomparison.algorithm.ReturnsBootstrapGraphs
getBootstrapGraphs
-
Constructor Details
-
Fci
public Fci()Constructor. -
Fci
-
-
Method Details
-
runSearch
Runs a search algorithm to find a graph based on the given data model and parameters.- Parameters:
dataModel
- the data model containing the datasetparameters
- the parameters for the search algorithm- Returns:
- the resulting graph
- Throws:
InterruptedException
-
getComparisonGraph
Returns the comparison graph based on the true directed graph, if there is one.- Specified by:
getComparisonGraph
in interfaceAlgorithm
- Parameters:
graph
- The true directed graph, if there is one.- Returns:
- The comparison graph.
-
getDescription
Returns a short, one-line description of this algorithm. The description includes the description of the independence test used by this algorithm.- Specified by:
getDescription
in interfaceAlgorithm
- Returns:
- The description of the algorithm.
-
getDataType
Returns the data type that the search requires, whether continuous, discrete, or mixed.- Specified by:
getDataType
in interfaceAlgorithm
- Returns:
- The data type required by the search algorithm.
-
getParameters
Retrieves the list of parameters used by this algorithm.- Specified by:
getParameters
in interfaceHasParameters
- Returns:
- The list of parameters used by this algorithm.
-
getKnowledge
Retrieves the knowledge object.- Specified by:
getKnowledge
in interfaceHasKnowledge
- Returns:
- The knowledge object.
-
setKnowledge
Sets the knowledge object for this method.- Specified by:
setKnowledge
in interfaceHasKnowledge
- Parameters:
knowledge
- The knowledge object to set.
-
getIndependenceWrapper
Retrieves theIndependenceWrapper
object associated with this method. This method is used to get the independence test used by the algorithm.- Specified by:
getIndependenceWrapper
in interfaceTakesIndependenceWrapper
- Returns:
- The IndependenceWrapper object associated with this method.
-
setIndependenceWrapper
Sets the IndependenceWrapper object associated with this method.- Specified by:
setIndependenceWrapper
in interfaceTakesIndependenceWrapper
- Parameters:
test
- the independence wrapper to set
-