Class DmPc
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.oracle.pag.DmPc
- All Implemented Interfaces:
- Algorithm,- ReturnsBootstrapGraphs,- TakesCovarianceMatrix,- HasKnowledge,- HasParameters,- TakesIndependenceWrapper,- TetradSerializable,- Serializable
@Algorithm(name="DM-PC",
           command="dm-pc",
           algoType=allow_latent_common_causes)
@Bootstrapping
public class DmPc
extends AbstractBootstrapAlgorithm
implements Algorithm, TakesIndependenceWrapper, HasKnowledge, ReturnsBootstrapGraphs, TakesCovarianceMatrix
Detect-Mimic-PC (DM-PC) algorithm. This is intended to detect intermediate latent variables for Multiple Input
 Multiple IndiCator (MIMIC) models. models.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionDmPc()Constructor for DM-PC.DmPc(IndependenceWrapper test) Constructor for DM-PC.
- 
Method SummaryModifier and TypeMethodDescriptiongetComparisonGraph(Graph graph) Retrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).Retrieves the data type required by the search algorithm.Returns a short, one-line description of this algorithm.Retrieves the IndependenceWrapper object associated with this method.Retrieves the knowledge object associated with this method.Retrieves the list of parameters used by the algorithm.runSearch(DataModel dataModel, Parameters parameters) Runs a search algorithm to find a graph structure based on a given data set and parameters.voidSets the independence wrapper.voidsetKnowledge(Knowledge knowledge) Sets the knowledge object associated with this method.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithmgetBootstrapGraphs, searchMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.algcomparison.algorithm.ReturnsBootstrapGraphsgetBootstrapGraphs
- 
Constructor Details- 
DmPcpublic DmPc()Constructor for DM-PC. 
- 
DmPcConstructor for DM-PC. - Parameters:
- test- a- IndependenceWrapperobject
 
 
- 
- 
Method Details- 
runSearchRuns a search algorithm to find a graph structure based on a given data set and parameters.- Parameters:
- dataModel- the data set to be used for the search algorithm
- parameters- the parameters for the search algorithm
- Returns:
- the graph structure found by the search algorithm
- Throws:
- InterruptedException
 
- 
getComparisonGraphRetrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).- Specified by:
- getComparisonGraphin interface- Algorithm
- Parameters:
- graph- The true directed graph, if there is one.
- Returns:
- The comparison graph.
 
- 
getDescriptionReturns a short, one-line description of this algorithm. The description is generated by concatenating the descriptions of the test and score objects associated with this algorithm.- Specified by:
- getDescriptionin interface- Algorithm
- Returns:
- The description of this algorithm.
 
- 
getDataTypeRetrieves the data type required by the search algorithm.- Specified by:
- getDataTypein interface- Algorithm
- Returns:
- The data type required by the search algorithm.
 
- 
getParametersRetrieves the list of parameters used by the algorithm.- Specified by:
- getParametersin interface- HasParameters
- Returns:
- The list of parameters used by the algorithm.
 
- 
getKnowledgeRetrieves the knowledge object associated with this method.- Specified by:
- getKnowledgein interface- HasKnowledge
- Returns:
- The knowledge object.
 
- 
setKnowledgeSets the knowledge object associated with this method.- Specified by:
- setKnowledgein interface- HasKnowledge
- Parameters:
- knowledge- the knowledge object to be set
 
- 
getIndependenceWrapperRetrieves the IndependenceWrapper object associated with this method. The IndependenceWrapper object contains an IndependenceTest that checks the independence of two variables conditional on a set of variables using a given dataset and parameters .- Specified by:
- getIndependenceWrapperin interface- TakesIndependenceWrapper
- Returns:
- The IndependenceWrapper object associated with this method.
 
- 
setIndependenceWrapperSets the independence wrapper.- Specified by:
- setIndependenceWrapperin interface- TakesIndependenceWrapper
- Parameters:
- test- the independence wrapper.
 
 
-