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). This version of PC will orient unshielded colliders by listing all subsets S for unshielded
X--Y--Z, for S subset of adj(X) \ {Z} or adj(Z) \ {X}. It then looks to see whether the facts X _||_ Z | S that test
as true all contain or do not contain Y.
- 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.voidSets the independence wrapper for the algorithm.voidsetKnowledge(Knowledge knowledge) Sets the knowledge associated with this object.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
getBootstrapGraphs, searchMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getComparisonGraphin 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:
getDescriptionin interfaceAlgorithm- Returns:
- This description.
-
getDataType
Returns the data type that the search requires, whether continuous, discrete, or mixed.- Specified by:
getDataTypein interfaceAlgorithm- Returns:
- The data type required for the search.
-
getParameters
Retrieves the list of parameters used in this method.- Specified by:
getParametersin interfaceHasParameters- Returns:
- The list of parameters, represented as strings.
-
getKnowledge
Retrieves the knowledge associated with this object.- Specified by:
getKnowledgein interfaceHasKnowledge- Returns:
- The knowledge associated with this object.
-
setKnowledge
Sets the knowledge associated with this object.- Specified by:
setKnowledgein interfaceHasKnowledge- Parameters:
knowledge- the knowledge object to be set
-
getIndependenceWrapper
Retrieves the IndependenceWrapper associated with this object.- Specified by:
getIndependenceWrapperin interfaceTakesIndependenceWrapper- Returns:
- The IndependenceWrapper object.
-
setIndependenceWrapper
Sets the independence wrapper for the algorithm.- Specified by:
setIndependenceWrapperin interfaceTakesIndependenceWrapper- Parameters:
test- the independence wrapper.
-