Class IndTestSepsetDci
java.lang.Object
edu.cmu.tetrad.search.work_in_progress.IndTestSepsetDci
- All Implemented Interfaces:
- IndependenceTest
Checks independence facts for variables associated with a sepset by simply querying the sepset
- Version:
- $Id: $Id
- Author:
- Robert Tillman
- 
Constructor SummaryConstructorsConstructorDescriptionIndTestSepsetDci(SepsetMapDci sepset, List<Node> nodes) Constructs a new independence test that returns d-separation facts for the given graph as independence results.
- 
Method SummaryModifier and TypeMethodDescriptioncheckIndependence(Node x, Node y, Set<Node> z) Checks the independence between two nodes, given a set of conditioning nodes.booleandetermines(List<Node> z, Node x1) Determines if a given Node is present in a List of Nodes.doublegetAlpha()getAlpha.getData()getData.getNode.doubleNeeded for IndependenceTest interface.getVariable(Node node) getVariable.getVariable(String name) Retrieves the variable with the specified name.getVariables.indTestSubset(List<Node> vars) Determines independence between a subset of variables.booleanisVerbose.voidsetAlpha(double alpha) Sets the alpha level for the independence test.voidsetVerbose(boolean verbose) Sets the verbose flag.toString()toString.Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.IndependenceTestcheckIndependence, determines, getCov, getDataSets, getSampleSize, getVariableNames
- 
Constructor Details- 
IndTestSepsetDciConstructs a new independence test that returns d-separation facts for the given graph as independence results.- Parameters:
- sepset- a- SepsetMapDciobject
- nodes- a- Listobject
 
 
- 
- 
Method Details- 
indTestSubsetDetermines independence between a subset of variables.- Specified by:
- indTestSubsetin interface- IndependenceTest
- Parameters:
- vars- The sublist of variables.
- Returns:
- This IndependenceTest object.
- Throws:
- IllegalArgumentException- If the subset is empty or contains variables that are not original variables.
 
- 
checkIndependenceChecks the independence between two nodes, given a set of conditioning nodes.- Specified by:
- checkIndependencein interface- IndependenceTest
- Parameters:
- x- A Node object representing the first node.
- y- A Node object representing the second node.
- z- A set representing the set of conditioning nodes.
- Returns:
- An IndependenceResult object containing the result of the independence test.
- Throws:
- NullPointerException- if z is null or if any node in z is null.
- RuntimeException- if the p-value is undefined.
 
- 
getPValuepublic double getPValue()Needed for IndependenceTest interface. P value is not meaningful here.- Returns:
- a double
 
- 
getVariablesgetVariables. - Specified by:
- getVariablesin interface- IndependenceTest
- Returns:
- the list of TetradNodes over which this independence checker is capable of determinine independence relations-- that is, all the variables in the given graph or the given data set.
 
- 
determinesDetermines if a given Node is present in a List of Nodes.- Parameters:
- z- The List of Nodes to search in.
- x1- The Node to search for.
- Returns:
- True if the Node x1 is present in the List z, otherwise False.
 
- 
getAlphapublic double getAlpha()getAlpha. - Specified by:
- getAlphain interface- IndependenceTest
- Returns:
- a double
 
- 
setAlphapublic void setAlpha(double alpha) Sets the alpha level for the independence test.- Specified by:
- setAlphain interface- IndependenceTest
- Parameters:
- alpha- The alpha level to be set.
 
- 
getVariableRetrieves the variable with the specified name.- Specified by:
- getVariablein interface- IndependenceTest
- Parameters:
- name- the name of the variable to retrieve
- Returns:
- the variable with the specified name, or null if not found
 
- 
getVariablegetVariable. - Parameters:
- node- a- Nodeobject
- Returns:
- the variable associated with the given node in the graph.
 
- 
getNodegetNode. - Parameters:
- variable- a- Nodeobject
- Returns:
- the node associated with the given variable in the graph.
 
- 
toStringtoString. - Specified by:
- toStringin interface- IndependenceTest
- Overrides:
- toStringin class- Object
- Returns:
- a Stringobject
 
- 
getDatagetData. - Specified by:
- getDatain interface- IndependenceTest
- Returns:
- a DataSetobject
 
- 
isVerbosepublic boolean isVerbose()isVerbose. - Specified by:
- isVerbosein interface- IndependenceTest
- Returns:
- a boolean
 
- 
setVerbosepublic void setVerbose(boolean verbose) Sets the verbose flag.- Specified by:
- setVerbosein interface- IndependenceTest
- Parameters:
- verbose- True if verbose mode is enabled, false otherwise.
 
 
-