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,HasKnowledge,HasParameters,TakesIndependenceWrapper,TetradSerializable,Serializable
@Algorithm(name="CD-NOD",
command="cdnod",
algoType=forbid_latent_common_causes)
@Bootstrapping
@Experimental
public class Cdnod
extends AbstractBootstrapAlgorithm
implements Algorithm, HasKnowledge, TakesIndependenceWrapper, ReturnsBootstrapGraphs, TakesCovarianceMatrix, LatentStructureAlgorithm
CD-NOD wrapper for algcomparison.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCdnod()Default constructor for the Cdnod class.Cdnod(IndependenceWrapper test) Constructs a new instance of Cdnod with the specified IndependenceWrapper. -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph(Graph graph) Generates a comparison graph by converting a given graph into its completed partially directed acyclic graph (CPDAG) form.Retrieves the data type associated with the current test instance.Provides a description of the CD-NOD algorithm using the associated configured IndependenceWrapper test or a default description if no test is configured.Retrieves the configured IndependenceWrapper instance associated with this object.Retrieves the knowledge object associated with the current instance of Cdnod.Retrieves a list of parameter names associated with the CD-NOD algorithm.voidSets the IndependenceWrapper test instance for this object.voidsetKnowledge(Knowledge knowledge) Sets the knowledge object for the current instance of the Cdnod class.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
-
Cdnod
public Cdnod()Default constructor for the Cdnod class. This constructor initializes a new instance of Cdnod without any specific parameters. -
Cdnod
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
Generates a comparison graph by converting a given graph into its completed partially directed acyclic graph (CPDAG) form.- Specified by:
getComparisonGraphin interfaceAlgorithm- 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
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:
getDescriptionin interfaceAlgorithm- Returns:
- A string description of the CD-NOD algorithm and its associated test.
-
getDataType
Retrieves the data type associated with the current test instance.- Specified by:
getDataTypein interfaceAlgorithm- Returns:
- the data type required by the configured IndependenceWrapper test, which can be Continuous, Discrete, Mixed, or other defined types.
-
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:
getParametersin interfaceHasParameters- Returns:
- a list of strings representing the names of parameters available for the algorithm.
-
getKnowledge
Retrieves the knowledge object associated with the current instance of Cdnod.- Specified by:
getKnowledgein interfaceHasKnowledge- Returns:
- the Knowledge object representing the domain knowledge or constraints configured for this algorithm instance.
-
setKnowledge
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:
setKnowledgein interfaceHasKnowledge- Parameters:
knowledge- the Knowledge object to set for this instance
-
getIndependenceWrapper
Retrieves the configured IndependenceWrapper instance associated with this object.- Specified by:
getIndependenceWrapperin interfaceTakesIndependenceWrapper- Returns:
- the current IndependenceWrapper instance used for independence testing.
-
setIndependenceWrapper
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:
setIndependenceWrapperin interfaceTakesIndependenceWrapper- Parameters:
test- the IndependenceWrapper instance to be set
-