Class Cpc
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.oracle.cpdag.Cpc
- All Implemented Interfaces:
Algorithm
,ReturnsBootstrapGraphs
,TakesCovarianceMatrix
,HasKnowledge
,HasParameters
,TakesIndependenceWrapper
,TetradSerializable
,Serializable
@Algorithm(name="CPC",
command="cpc",
algoType=forbid_latent_common_causes)
@Bootstrapping
public class Cpc
extends AbstractBootstrapAlgorithm
implements Algorithm, HasKnowledge, TakesIndependenceWrapper, ReturnsBootstrapGraphs, TakesCovarianceMatrix
Conservative PC (CPC).
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCpc()
This class represents the constructor for the Cpc class.Cpc
(IndependenceWrapper test) This class represents the constructor for the Cpc class. -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph
(Graph graph) Retrieves the comparison graph for the given true directed graph.Returns the data type that the search requires, whether continuous, discrete, or mixed.Returns a short, one-line description of this algorithm.Retrieves the IndependenceWrapper associated with this object.Retrieves the knowledge associated with this object.Retrieves the list of parameters used in this method.void
Sets the independence wrapper for the algorithm.void
setKnowledge
(Knowledge knowledge) Sets the knowledge associated with this object.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
-
Cpc
public Cpc()This class represents the constructor for the Cpc class. It is used to create an instance of the Cpc class. -
Cpc
This class represents the constructor for the Cpc class. It is used to create an instance of the Cpc class.- Parameters:
test
- The IndependenceWrapper object.
-
-
Method Details
-
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 comparison graph.
-
getDescription
Returns a short, one-line description of this algorithm. This will be printed in the report.- Specified by:
getDescription
in interfaceAlgorithm
- Returns:
- This description.
-
getDataType
Returns the data type that the search requires, whether continuous, discrete, or mixed.- Specified by:
getDataType
in interfaceAlgorithm
- Returns:
- The data type required for the search.
-
getParameters
Retrieves the list of parameters used in this method.- Specified by:
getParameters
in interfaceHasParameters
- Returns:
- The list of parameters, represented as strings.
-
getKnowledge
Retrieves the knowledge associated with this object.- Specified by:
getKnowledge
in interfaceHasKnowledge
- Returns:
- The knowledge associated with this object.
-
setKnowledge
Sets the knowledge associated with this object.- Specified by:
setKnowledge
in interfaceHasKnowledge
- Parameters:
knowledge
- the knowledge object to be set
-
getIndependenceWrapper
Retrieves the IndependenceWrapper associated with this object.- 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.
-