Class Dm
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.oracle.pag.Dm
- All Implemented Interfaces:
Algorithm, ReturnsBootstrapGraphs, AcceptsKnowledge, HasParameters, TakesIndependenceWrapper, TetradSerializable, Serializable
public class Dm
extends AbstractBootstrapAlgorithm
implements Algorithm, AcceptsKnowledge, ReturnsBootstrapGraphs, TakesIndependenceWrapper
Algorithm-comparison wrapper for the Murray-Watters/Glymour style Detect-Mimic
search, DM.
This wrapper builds the requested independence test from the supplied
IndependenceWrapper, runs Dm, and returns the resulting graph.
The underlying DM search internally performs both a depth-0 PC run and a full-depth PC run as part of the Murray-Watters/Glymour procedure. Accordingly, no external PC-depth parameter is exposed here.
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDm()Constructs the algorithm with a default Fisher Z test.Dm(IndependenceWrapper test) Constructs the algorithm with the supplied independence wrapper. -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph(Graph graph) Returns the comparison graph for the supplied graph.Returns the data type supported by the underlying test.Returns a description of this algorithm.Returns the independence wrapper.Returns the background knowledge.Returns the list of parameters used by this algorithm.voidsetIndependenceWrapper(IndependenceWrapper independenceWrapper) Sets the independence wrapper.voidsetKnowledge(Knowledge knowledge) Sets the background knowledge.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
-
Dm
public Dm()Constructs the algorithm with a default Fisher Z test. -
Dm
Constructs the algorithm with the supplied independence wrapper.- Parameters:
test- the independence wrapper
-
-
Method Details
-
getComparisonGraph
Returns the comparison graph for the supplied graph.As with other CPDAG-style wrappers, the comparison graph is the CPDAG of the DAG obtained from the input graph.
- Specified by:
getComparisonGraphin interfaceAlgorithm- Parameters:
graph- the graph- Returns:
- the comparison graph
-
getDescription
Returns a description of this algorithm.- Specified by:
getDescriptionin interfaceAlgorithm- Returns:
- the description
-
getDataType
Returns the data type supported by the underlying test.- Specified by:
getDataTypein interfaceAlgorithm- Returns:
- the data type
-
getParameters
Returns the list of parameters used by this algorithm.- Specified by:
getParametersin interfaceHasParameters- Returns:
- the parameter names
-
getKnowledge
Returns the background knowledge.- Specified by:
getKnowledgein interfaceAcceptsKnowledge- Returns:
- the background knowledge
-
setKnowledge
Sets the background knowledge.- Specified by:
setKnowledgein interfaceAcceptsKnowledge- Parameters:
knowledge- the background knowledge
-
getIndependenceWrapper
Description copied from interface:TakesIndependenceWrapperReturns the independence wrapper.- Specified by:
getIndependenceWrapperin interfaceTakesIndependenceWrapper- Returns:
- the independence wrapper.
-
setIndependenceWrapper
Description copied from interface:TakesIndependenceWrapperSets the independence wrapper.- Specified by:
setIndependenceWrapperin interfaceTakesIndependenceWrapper- Parameters:
independenceWrapper- the independence wrapper.
-