Class Ccd
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.oracle.pag.Ccd
- All Implemented Interfaces:
Algorithm
,ReturnsBootstrapGraphs
,TakesCovarianceMatrix
,HasParameters
,TakesIndependenceWrapper
,TetradSerializable
,Serializable
@Algorithm(name="CCD",
command="ccd",
algoType=forbid_latent_common_causes)
@Bootstrapping
public class Ccd
extends AbstractBootstrapAlgorithm
implements Algorithm, TakesIndependenceWrapper, ReturnsBootstrapGraphs, TakesCovarianceMatrix
CCD (Cyclic Causal Discovery)
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCcd()
Constructs a new CCD algorithm.Ccd
(IndependenceWrapper test) Constructs a new CCD algorithm with the given independence test. -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph
(Graph graph) Retrieves the comparison graph for the given true directed graph.Retrieves the data type that the search requires.Returns a short, one-line description of this algorithm.Returns the IndependenceWrapper object associated with this instance.Retrieves the parameters for the search algorithm.runSearch
(DataModel dataModel, Parameters parameters) Runs the CCD (Cyclic Causal Discovery) search algorithm on the given data set using the specified parameters.void
setIndependenceWrapper
(IndependenceWrapper independenceWrapper) Updates the independence wrapper for 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
-
Ccd
public Ccd()Constructs a new CCD algorithm. -
Ccd
Constructs a new CCD algorithm with the given independence test.- Parameters:
test
- the independence test
-
-
Method Details
-
runSearch
Runs the CCD (Cyclic Causal Discovery) search algorithm on the given data set using the specified parameters.- Parameters:
dataModel
- the data set to search onparameters
- the parameters for the search algorithm- Returns:
- the resulting graph from the search
- Throws:
InterruptedException
-
getComparisonGraph
Retrieves the comparison graph for the given true directed graph.- Specified by:
getComparisonGraph
in interfaceAlgorithm
- Parameters:
graph
- The true directed graph, if there is one.- Returns:
- The true DAG.
-
getDescription
Returns a short, one-line description of this algorithm. This description will be printed in the report.- Specified by:
getDescription
in interfaceAlgorithm
- Returns:
- The description of this algorithm.
-
getDataType
Retrieves the data type that the search requires.- Specified by:
getDataType
in interfaceAlgorithm
- Returns:
- The data type required by the search.
-
getParameters
Retrieves the parameters for the search algorithm. This method combines the parameters obtained from the underlying test with additional parameters specific to the CCD (Cyclic Causal Discovery) algorithm.- Specified by:
getParameters
in interfaceHasParameters
- Returns:
- A list of String names for parameters.
-
getIndependenceWrapper
Returns the IndependenceWrapper object associated with this instance.- Specified by:
getIndependenceWrapper
in interfaceTakesIndependenceWrapper
- Returns:
- the IndependenceWrapper object
-
setIndependenceWrapper
Updates the independence wrapper for this algorithm.- Specified by:
setIndependenceWrapper
in interfaceTakesIndependenceWrapper
- Parameters:
independenceWrapper
- the independence wrapper to set
-