Package edu.cmu.tetrad.search.test
Class IndTestIndependenceFacts
java.lang.Object
edu.cmu.tetrad.search.test.IndTestIndependenceFacts
- All Implemented Interfaces:
IndependenceTest
Checks conditional independence against a list of conditional independence facts, manually entered.
- Author:
- josephramsey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckIndependence
(Node x, Node y, Set<Node> __z) Checks independence by looking up facts in the list of facts supplied in the constructor.boolean
determines
(List<Node> z, Node y) double
getAlpha()
Returns the significance level of the independence test.getData()
Returns the facts supplied in the constructor, which constutite a data model.double
No p-values are available.getVariable
(String name) Returns the node with the given name.Returns the list of variables for the facts.indTestSubset
(List<Node> vars) Returns an Independence test for a sublist of the variables.boolean
Returns whether verbose output is to be printed.void
setAlpha
(double alpha) Sets the significance level.void
setVerbose
(boolean verbose) Sets whether verbose output is to be printed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface edu.cmu.tetrad.search.IndependenceTest
checkIndependence, determines, getCov, getDataSets, getSampleSize, getVariableNames, toString
-
Constructor Details
-
IndTestIndependenceFacts
Constructor.- Parameters:
facts
- The facts to check.- See Also:
-
-
Method Details
-
indTestSubset
Description copied from interface:IndependenceTest
Returns an Independence test for a sublist of the variables.- Specified by:
indTestSubset
in interfaceIndependenceTest
- Parameters:
vars
- The sublist of variables.- Throws:
javax.help.UnsupportedOperationException
- Not implemented.
-
checkIndependence
Checks independence by looking up facts in the list of facts supplied in the constructor.- Specified by:
checkIndependence
in interfaceIndependenceTest
- Returns:
- the independence result.
- See Also:
-
getPValue
public double getPValue()No p-values are available.- Returns:
- Double.NaN.
-
getVariables
Returns the list of variables for the facts.- Specified by:
getVariables
in interfaceIndependenceTest
- Returns:
- This list.
-
getVariable
Returns the node with the given name.- Specified by:
getVariable
in interfaceIndependenceTest
- Parameters:
name
- The name of the node,- Returns:
- The node.
-
determines
- Throws:
javax.help.UnsupportedOperationException
- Method not implemented.
-
getAlpha
public double getAlpha()Description copied from interface:IndependenceTest
Returns the significance level of the independence test.- Specified by:
getAlpha
in interfaceIndependenceTest
- Returns:
- This level.
- Throws:
UnsupportedOperationException
- Method not implemented.
-
setAlpha
public void setAlpha(double alpha) Description copied from interface:IndependenceTest
Sets the significance level.- Specified by:
setAlpha
in interfaceIndependenceTest
- Parameters:
alpha
- This level.- Throws:
UnsupportedOperationException
- Method not implemented.
-
getData
Returns the facts supplied in the constructor, which constutite a data model.- Specified by:
getData
in interfaceIndependenceTest
- Returns:
- These facts.
- See Also:
-
isVerbose
public boolean isVerbose()Returns whether verbose output is to be printed.- Specified by:
isVerbose
in interfaceIndependenceTest
- Returns:
- True, if so.
-
setVerbose
public void setVerbose(boolean verbose) Sets whether verbose output is to be printed.- Specified by:
setVerbose
in interfaceIndependenceTest
- Parameters:
verbose
- True, if so.
-