Class Cdnod

java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.oracle.cpdag.Cdnod
All Implemented Interfaces:
Algorithm, LatentStructureAlgorithm, ReturnsBootstrapGraphs, TakesCovarianceMatrix, AcceptsKnowledge, HasParameters, TakesIndependenceWrapper, TetradSerializable, Serializable

CD-NOD wrapper for algcomparison.

Semantics: ALL Tier-0 variables in Knowledge are treated as contexts (no requirement that any context be a particular column). The underlying search is Cdnod.

See Also:
  • Constructor Details

    • Cdnod

      public Cdnod()
      Default constructor for the Cdnod class. This constructor initializes a new instance of the Cdnod algorithm without any predefined configurations or dependencies.
    • Cdnod

      public Cdnod(IndependenceWrapper test)
      Constructs a new instance of the Cdnod class using the provided IndependenceWrapper instance. The IndependenceWrapper is used to run independence tests required by the algorithm.
      Parameters:
      test - The IndependenceWrapper instance used to perform independence testing. This parameter is essential for configuring and executing the Cdnod algorithm.
  • Method Details

    • getComparisonGraph

      public Graph getComparisonGraph(Graph graph)
      Returns a CPDAG that is 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 CPDAG comparison graph.
    • getDescription

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

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

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

      public Knowledge getKnowledge()
      Returns the knowledge of the algorithm.
      Specified by:
      getKnowledge in interface AcceptsKnowledge
      Returns:
      The knowledge of the algorithm.
    • setKnowledge

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

      public IndependenceWrapper getIndependenceWrapper()
      Returns the independence wrapper of the algorithm.
      Specified by:
      getIndependenceWrapper in interface TakesIndependenceWrapper
      Returns:
      The independence wrapper of the algorithm.
    • setIndependenceWrapper

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