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

CD-NOD wrapper for algcomparison.
See Also:
  • Constructor Details

    • Cdnod

      public Cdnod()
      Default constructor for the Cdnod class. This constructor initializes a new instance of Cdnod without any specific parameters.
    • Cdnod

      public Cdnod(IndependenceWrapper test)
      Constructs a new instance of Cdnod with the specified IndependenceWrapper.
      Parameters:
      test - the IndependenceWrapper instance to be associated with this Cdnod object
  • Method Details

    • getComparisonGraph

      public Graph getComparisonGraph(Graph graph)
      Generates a comparison graph by converting a given graph into its completed partially directed acyclic graph (CPDAG) form.
      Specified by:
      getComparisonGraph in interface Algorithm
      Parameters:
      graph - the input graph to be processed, represented as a Graph object
      Returns:
      a new Graph object representing the CPDAG form of the input graph
    • getDescription

      public String getDescription()
      Provides a description of the CD-NOD algorithm using the associated configured IndependenceWrapper test or a default description if no test is configured.
      Specified by:
      getDescription in interface Algorithm
      Returns:
      A string description of the CD-NOD algorithm and its associated test.
    • getDataType

      public DataType getDataType()
      Retrieves the data type associated with the current test instance.
      Specified by:
      getDataType in interface Algorithm
      Returns:
      the data type required by the configured IndependenceWrapper test, which can be Continuous, Discrete, Mixed, or other defined types.
    • getParameters

      public List<String> getParameters()
      Retrieves a list of parameter names associated with the CD-NOD algorithm. These parameters are used to configure specific aspects of the algorithm's execution.
      Specified by:
      getParameters in interface HasParameters
      Returns:
      a list of strings representing the names of parameters available for the algorithm.
    • getKnowledge

      public Knowledge getKnowledge()
      Retrieves the knowledge object associated with the current instance of Cdnod.
      Specified by:
      getKnowledge in interface HasKnowledge
      Returns:
      the Knowledge object representing the domain knowledge or constraints configured for this algorithm instance.
    • setKnowledge

      public void setKnowledge(Knowledge knowledge)
      Sets the knowledge object for the current instance of the Cdnod class. The knowledge object represents domain knowledge or constraints used to inform the algorithm's execution.
      Specified by:
      setKnowledge in interface HasKnowledge
      Parameters:
      knowledge - the Knowledge object to set for this instance
    • getIndependenceWrapper

      public IndependenceWrapper getIndependenceWrapper()
      Retrieves the configured IndependenceWrapper instance associated with this object.
      Specified by:
      getIndependenceWrapper in interface TakesIndependenceWrapper
      Returns:
      the current IndependenceWrapper instance used for independence testing.
    • setIndependenceWrapper

      public void setIndependenceWrapper(IndependenceWrapper test)
      Sets the IndependenceWrapper test instance for this object. The IndependenceWrapper is used to perform statistical independence tests as part of the CD-NOD algorithm's functionality.
      Specified by:
      setIndependenceWrapper in interface TakesIndependenceWrapper
      Parameters:
      test - the IndependenceWrapper instance to be set