Class Cpc
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.oracle.cpdag.Cpc
- All Implemented Interfaces:
Algorithm
,ReturnsBootstrapGraphs
,HasKnowledge
,HasParameters
,TakesIndependenceWrapper
,TetradSerializable
,Serializable
@Algorithm(name="CPC",
command="cpc",
algoType=forbid_latent_common_causes)
@Bootstrapping
public class Cpc
extends Object
implements Algorithm, HasKnowledge, TakesIndependenceWrapper, ReturnsBootstrapGraphs
Conservative PC (CPC).
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCpc()
Constructor for Cpc.Cpc
(IndependenceWrapper test) Constructor for Cpc. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the BootstrapGraphs associated with this algorithm.getComparisonGraph
(Graph graph) Returns the comparison graph for the given true directed graph.Retrieves the data type required by the search algorithm.Returns a short description of the method.Retrieves the IndependenceWrapper associated with this algorithm.Retrieves the knowledge associated with the algorithm.Retrieves the list of parameters used in the search algorithm.search
(DataModel dataModel, Parameters parameters) Searches for a graph based on the given data model and parameters.void
Sets the independence wrapper for the algorithm.void
setKnowledge
(Knowledge knowledge) Sets the knowledge associated with the algorithm.
-
Constructor Details
-
Cpc
public Cpc()Constructor for Cpc.
-
Cpc
Constructor for Cpc.
- Parameters:
test
- aIndependenceWrapper
object
-
-
Method Details
-
search
Searches for a graph based on the given data model and parameters. -
getComparisonGraph
Returns 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 comparison graph.
-
getDescription
Returns a short description of the method.- 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 used in the search algorithm.- Specified by:
getParameters
in interfaceAlgorithm
- Specified by:
getParameters
in interfaceHasParameters
- Returns:
- The list of parameters used in the search algorithm.
-
getKnowledge
Retrieves the knowledge associated with the algorithm.- Specified by:
getKnowledge
in interfaceHasKnowledge
- Returns:
- The knowledge object.
-
setKnowledge
Sets the knowledge associated with the algorithm.- Specified by:
setKnowledge
in interfaceHasKnowledge
- Parameters:
knowledge
- a knowledge object.
-
getIndependenceWrapper
Retrieves the IndependenceWrapper 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.
-
getBootstrapGraphs
Retrieves the BootstrapGraphs associated with this algorithm.- Specified by:
getBootstrapGraphs
in interfaceReturnsBootstrapGraphs
- Returns:
- The list of BootstrapGraphs.
-