Class Fci
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.oracle.pag.Fci
- All Implemented Interfaces:
Algorithm,LatentStructureAlgorithm,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, LatentStructureAlgorithm
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 theIndependenceWrapperobject 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.voidSets the IndependenceWrapper object associated with this method.voidsetKnowledge(Knowledge knowledge) Sets the knowledge object for this method.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
getBootstrapGraphs, searchMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.algcomparison.algorithm.ReturnsBootstrapGraphs
getBootstrapGraphs
-
Constructor Details
-
Fci
public Fci()Constructor. -
Fci
Constructor.- Parameters:
test- aIndependenceWrapperobject
-
-
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:
getComparisonGraphin 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:
getDescriptionin interfaceAlgorithm- Returns:
- The description of the algorithm.
-
getDataType
Returns the data type that the search requires, whether continuous, discrete, or mixed.- Specified by:
getDataTypein interfaceAlgorithm- Returns:
- The data type required by the search algorithm.
-
getParameters
Retrieves the list of parameters used by this algorithm.- Specified by:
getParametersin interfaceHasParameters- Returns:
- The list of parameters used by this algorithm.
-
getKnowledge
Retrieves the knowledge object.- Specified by:
getKnowledgein interfaceHasKnowledge- Returns:
- The knowledge object.
-
setKnowledge
Sets the knowledge object for this method.- Specified by:
setKnowledgein interfaceHasKnowledge- Parameters:
knowledge- The knowledge object to set.
-
getIndependenceWrapper
Retrieves theIndependenceWrapperobject associated with this method. This method is used to get the independence test used by the algorithm.- Specified by:
getIndependenceWrapperin interfaceTakesIndependenceWrapper- Returns:
- The IndependenceWrapper object associated with this method.
-
setIndependenceWrapper
Sets the IndependenceWrapper object associated with this method.- Specified by:
setIndependenceWrapperin interfaceTakesIndependenceWrapper- Parameters:
test- the independence wrapper to set
-