java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.oracle.cpdag.Cpc
All Implemented Interfaces:
Algorithm, ReturnsBootstrapGraphs, HasKnowledge, HasParameters, TakesIndependenceWrapper, TetradSerializable, Serializable

Conservative PC (CPC).
Version:
$Id: $Id
Author:
josephramsey
See Also:
  • Constructor Details

  • Method Details

    • search

      public Graph search(DataModel dataModel, Parameters parameters)
      Searches for a graph based on the given data model and parameters.
      Specified by:
      search in interface Algorithm
      Parameters:
      dataModel - The data set to run the search on.
      parameters - The parameters of the search.
      Returns:
      The resulting graph.
    • getComparisonGraph

      public Graph getComparisonGraph(Graph graph)
      Returns the comparison graph for the given true directed graph.
      Specified by:
      getComparisonGraph in interface Algorithm
      Parameters:
      graph - The true directed graph, if there is one.
      Returns:
      The comparison graph.
    • getDescription

      public String getDescription()
      Returns a short description of the method.
      Specified by:
      getDescription in interface Algorithm
      Returns:
      The description of the method.
    • getDataType

      public DataType getDataType()
      Retrieves the data type required by the search algorithm.
      Specified by:
      getDataType in interface Algorithm
      Returns:
      The data type required by the search algorithm.
    • getParameters

      public List<String> getParameters()
      Retrieves the list of parameters used in the search algorithm.
      Specified by:
      getParameters in interface Algorithm
      Specified by:
      getParameters in interface HasParameters
      Returns:
      The list of parameters used in the search algorithm.
    • getKnowledge

      public Knowledge getKnowledge()
      Retrieves the knowledge associated with the algorithm.
      Specified by:
      getKnowledge in interface HasKnowledge
      Returns:
      The knowledge object.
    • setKnowledge

      public void setKnowledge(Knowledge knowledge)
      Sets the knowledge associated with the algorithm.
      Specified by:
      setKnowledge in interface HasKnowledge
      Parameters:
      knowledge - a knowledge object.
    • getIndependenceWrapper

      public IndependenceWrapper getIndependenceWrapper()
      Retrieves the IndependenceWrapper associated with this algorithm.
      Specified by:
      getIndependenceWrapper in interface TakesIndependenceWrapper
      Returns:
      The IndependenceWrapper object.
    • setIndependenceWrapper

      public void setIndependenceWrapper(IndependenceWrapper test)
      Sets the independence wrapper for the algorithm.
      Specified by:
      setIndependenceWrapper in interface TakesIndependenceWrapper
      Parameters:
      test - the independence wrapper.
    • getBootstrapGraphs

      public List<Graph> getBootstrapGraphs()
      Retrieves the BootstrapGraphs associated with this algorithm.
      Specified by:
      getBootstrapGraphs in interface ReturnsBootstrapGraphs
      Returns:
      The list of BootstrapGraphs.