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
@Algorithm(name="CD-NOD",
command="cdnod",
algoType=forbid_latent_common_causes)
@Bootstrapping
@Experimental
public class Cdnod
extends AbstractBootstrapAlgorithm
implements Algorithm, AcceptsKnowledge, TakesIndependenceWrapper, ReturnsBootstrapGraphs, TakesCovarianceMatrix, LatentStructureAlgorithm
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 Summary
ConstructorsConstructorDescriptionCdnod()Default constructor for the Cdnod class.Cdnod(IndependenceWrapper test) Constructs a new instance of the Cdnod class using the provided IndependenceWrapper instance. -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph(Graph graph) Returns a CPDAG that is the comparison graph for the given true directed graph.Returns the data type of the algorithm.Returns a description of the algorithm.Returns the independence wrapper of the algorithm.Returns the knowledge of the algorithm.Returns the parameters of the algorithm.voidSets the independence wrapper of the algorithm.voidsetKnowledge(Knowledge knowledge) Sets the knowledge of the algorithm.Methods inherited from class AbstractBootstrapAlgorithm
getBootstrapGraphs, searchMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReturnsBootstrapGraphs
getBootstrapGraphs
-
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
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
Returns a CPDAG that is the comparison graph for the given true directed graph.- Specified by:
getComparisonGraphin interfaceAlgorithm- Parameters:
graph- The true directed graph, if there is one.- Returns:
- The CPDAG comparison graph.
-
getDescription
Returns a description of the algorithm.- Specified by:
getDescriptionin interfaceAlgorithm- Returns:
- The description of the algorithm.
-
getDataType
Returns the data type of the algorithm.- Specified by:
getDataTypein interfaceAlgorithm- Returns:
- The data type of the algorithm.
-
getParameters
Returns the parameters of the algorithm.- Specified by:
getParametersin interfaceHasParameters- Returns:
- The parameters of the algorithm.
-
getKnowledge
Returns the knowledge of the algorithm.- Specified by:
getKnowledgein interfaceAcceptsKnowledge- Returns:
- The knowledge of the algorithm.
-
setKnowledge
Sets the knowledge of the algorithm.- Specified by:
setKnowledgein interfaceAcceptsKnowledge- Parameters:
knowledge- a knowledge object.
-
getIndependenceWrapper
Returns the independence wrapper of the algorithm.- Specified by:
getIndependenceWrapperin interfaceTakesIndependenceWrapper- Returns:
- The independence wrapper of the algorithm.
-
setIndependenceWrapper
Sets the independence wrapper of the algorithm.- Specified by:
setIndependenceWrapperin interfaceTakesIndependenceWrapper- Parameters:
test- the independence wrapper.
-