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 SummaryConstructorsConstructorDescriptionCcd()Constructs a new CCD algorithm.Ccd(IndependenceWrapper test) Constructs a new CCD algorithm with the given independence test.
- 
Method SummaryModifier 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.voidsetIndependenceWrapper(IndependenceWrapper independenceWrapper) Updates the independence wrapper for this algorithm.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithmgetBootstrapGraphs, searchMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.algcomparison.algorithm.ReturnsBootstrapGraphsgetBootstrapGraphs
- 
Constructor Details- 
Ccdpublic Ccd()Constructs a new CCD algorithm.
- 
CcdConstructs a new CCD algorithm with the given independence test.- Parameters:
- test- the independence test
 
 
- 
- 
Method Details- 
runSearchRuns the CCD (Cyclic Causal Discovery) search algorithm on the given data set using the specified parameters.- Parameters:
- dataModel- the data set to search on
- parameters- the parameters for the search algorithm
- Returns:
- the resulting graph from the search
- Throws:
- InterruptedException
 
- 
getComparisonGraphRetrieves the comparison graph for the given true directed graph.- Specified by:
- getComparisonGraphin interface- Algorithm
- Parameters:
- graph- The true directed graph, if there is one.
- Returns:
- The true DAG.
 
- 
getDescriptionReturns a short, one-line description of this algorithm. This description will be printed in the report.- Specified by:
- getDescriptionin interface- Algorithm
- Returns:
- The description of this algorithm.
 
- 
getDataTypeRetrieves the data type that the search requires.- Specified by:
- getDataTypein interface- Algorithm
- Returns:
- The data type required by the search.
 
- 
getParametersRetrieves 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:
- getParametersin interface- HasParameters
- Returns:
- A list of String names for parameters.
 
- 
getIndependenceWrapperReturns the IndependenceWrapper object associated with this instance.- Specified by:
- getIndependenceWrapperin interface- TakesIndependenceWrapper
- Returns:
- the IndependenceWrapper object
 
- 
setIndependenceWrapperUpdates the independence wrapper for this algorithm.- Specified by:
- setIndependenceWrapperin interface- TakesIndependenceWrapper
- Parameters:
- independenceWrapper- the independence wrapper to set
 
 
-