Class CdnodPag
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.oracle.cpdag.CdnodPag
- All Implemented Interfaces:
Algorithm, LatentStructureAlgorithm, ReturnsBootstrapGraphs, TakesCovarianceMatrix, AcceptsKnowledge, HasParameters, TakesIndependenceWrapper, TakesScoreWrapper, TetradSerializable, Serializable
@Algorithm(name="CD-NOD-PAG",
command="cdnodpag",
algoType=allow_latent_common_causes)
@Bootstrapping
@Experimental
public class CdnodPag
extends AbstractBootstrapAlgorithm
implements Algorithm, AcceptsKnowledge, TakesIndependenceWrapper, TakesScoreWrapper, ReturnsBootstrapGraphs, TakesCovarianceMatrix, LatentStructureAlgorithm
CD-NOD wrapper for algcomparison.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCdnodPag()Default constructor for the Cdnod class.CdnodPag(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.Returns the score wrapper.voidSets the IndependenceWrapper test instance for this object.voidsetKnowledge(Knowledge knowledge) Sets the knowledge object for the current instance of the Cdnod class.voidsetScoreWrapper(ScoreWrapper score) Sets the score wrapper.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
-
CdnodPag
public CdnodPag()Default constructor for the Cdnod class. This constructor initializes a new instance of Cdnod without any specific parameters. -
CdnodPag
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 interfaceAcceptsKnowledge- 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 interfaceAcceptsKnowledge- 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
-
getScoreWrapper
Description copied from interface:TakesScoreWrapperReturns the score wrapper.- Specified by:
getScoreWrapperin interfaceTakesScoreWrapper- Returns:
- the score wrapper.
-
setScoreWrapper
Description copied from interface:TakesScoreWrapperSets the score wrapper.- Specified by:
setScoreWrapperin interfaceTakesScoreWrapper- Parameters:
score- the score wrapper.
-