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 SummaryConstructorsConstructorDescriptionCpc()This class represents the constructor for the Cpc class.Cpc(IndependenceWrapper test) This class represents the constructor for the Cpc class.
- 
Method SummaryModifier 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.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- 
Cpcpublic Cpc()This class represents the constructor for the Cpc class. It is used to create an instance of the Cpc class.
- 
CpcThis 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- 
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 comparison graph.
 
- 
getDescriptionReturns a short, one-line description of this algorithm. This will be printed in the report.- Specified by:
- getDescriptionin interface- Algorithm
- Returns:
- This description.
 
- 
getDataTypeReturns the data type that the search requires, whether continuous, discrete, or mixed.- Specified by:
- getDataTypein interface- Algorithm
- Returns:
- The data type required for the search.
 
- 
getParametersRetrieves the list of parameters used in this method.- Specified by:
- getParametersin interface- HasParameters
- Returns:
- The list of parameters, represented as strings.
 
- 
getKnowledgeRetrieves the knowledge associated with this object.- Specified by:
- getKnowledgein interface- HasKnowledge
- Returns:
- The knowledge associated with this object.
 
- 
setKnowledgeSets the knowledge associated with this object.- Specified by:
- setKnowledgein interface- HasKnowledge
- Parameters:
- knowledge- the knowledge object to be set
 
- 
getIndependenceWrapperRetrieves the IndependenceWrapper associated with this object.- Specified by:
- getIndependenceWrapperin interface- TakesIndependenceWrapper
- Returns:
- The IndependenceWrapper object.
 
- 
setIndependenceWrapperSets the independence wrapper for the algorithm.- Specified by:
- setIndependenceWrapperin interface- TakesIndependenceWrapper
- Parameters:
- test- the independence wrapper.
 
 
-