Class SvarFci
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.oracle.pag.SvarFci
- All Implemented Interfaces:
Algorithm
,ReturnsBootstrapGraphs
,TakesCovarianceMatrix
,HasKnowledge
,HasParameters
,TakesIndependenceWrapper
,TetradSerializable
,Serializable
@Algorithm(name="SvarFCI",
command="svar-fci",
algoType=allow_latent_common_causes)
@TimeSeries
@Bootstrapping
public class SvarFci
extends AbstractBootstrapAlgorithm
implements Algorithm, HasKnowledge, TakesIndependenceWrapper, ReturnsBootstrapGraphs, TakesCovarianceMatrix
The SvarFci class is an implementation of the SVAR Fast Causal Inference algorithm.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSvarFci()
Represents a constructor for the SvarFci class.SvarFci
(IndependenceWrapper test) Represents a constructor for the SvarFci class. -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph
(Graph graph) Returns a comparison graph based on the given true directed graph.Retrieves the data type required by the search algorithm.Returns the description of the method.Retrieves the IndependenceWrapper object associated with this algorithm.Retrieves the knowledge object associated with this algorithm.Retrieves the list of parameters required for this method.runSearch
(DataModel dataModel, Parameters parameters) Executes the search algorithm to find a graph structure that best fits the given dataset and parameters.void
Sets the independence wrapper for the algorithm.void
setKnowledge
(Knowledge knowledge) Sets the knowledge object associated with this algorithm.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
-
SvarFci
public SvarFci()Represents a constructor for the SvarFci class. -
SvarFci
Represents a constructor for the SvarFci class.- Parameters:
test
- The IndependenceWrapper object used in the constructor.
-
-
Method Details
-
runSearch
Executes the search algorithm to find a graph structure that best fits the given dataset and parameters.- Parameters:
dataModel
- The dataset to perform the search on.parameters
- The parameters to configure the search.- Returns:
- The graph structure that best fits the dataset.
- Throws:
InterruptedException
-
getComparisonGraph
Returns a comparison graph based on the given true directed graph.- Specified by:
getComparisonGraph
in interfaceAlgorithm
- Parameters:
graph
- The true directed graph, if there is one.- Returns:
- The comparison graph.
-
getDescription
Returns the description of the method. The description is a combination of "SvarFCI (SVAR Fast Causal Inference) using" and the description of the independence test object.- Specified by:
getDescription
in interfaceAlgorithm
- Returns:
- the description of the method.
-
getDataType
Retrieves the data type required by the search algorithm.- Specified by:
getDataType
in interfaceAlgorithm
- Returns:
- The data type required by the search algorithm.
-
getParameters
Retrieves the list of parameters required for this method.- Specified by:
getParameters
in interfaceHasParameters
- Returns:
- The list of parameters.
-
getKnowledge
Retrieves the knowledge object associated with this algorithm.- Specified by:
getKnowledge
in interfaceHasKnowledge
- Returns:
- The knowledge object.
-
setKnowledge
Sets the knowledge object associated with this algorithm.- Specified by:
setKnowledge
in interfaceHasKnowledge
- Parameters:
knowledge
- The knowledge object to be set.
-
getIndependenceWrapper
Retrieves the IndependenceWrapper object associated with this algorithm.- Specified by:
getIndependenceWrapper
in interfaceTakesIndependenceWrapper
- Returns:
- The IndependenceWrapper object.
-
setIndependenceWrapper
Sets the independence wrapper for the algorithm.- Specified by:
setIndependenceWrapper
in interfaceTakesIndependenceWrapper
- Parameters:
test
- The independence wrapper to set.
-