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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncheckIndependence(Node x, Node y, Set<Node> __z) Checks independence by looking up facts in the list of facts supplied in the constructor.booleandetermines(List<Node> z, Node y) doublegetAlpha()Returns the significance level of the independence test.getData()Returns the facts supplied in the constructor, which constutite a data model.doubleNo 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.booleanReturns whether verbose output is to be printed.voidsetAlpha(double alpha) Sets the significance level.voidsetVerbose(boolean verbose) Sets whether verbose output is to be printed.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.IndependenceTestcheckIndependence, determines, getCov, getDataSets, getSampleSize, getVariableNames, toString
- 
Constructor Details- 
IndTestIndependenceFactsConstructor.- Parameters:
- facts- The facts to check.
- See Also:
 
 
- 
- 
Method Details- 
indTestSubsetDescription copied from interface:IndependenceTestReturns an Independence test for a sublist of the variables.- Specified by:
- indTestSubsetin interface- IndependenceTest
- Parameters:
- vars- The sublist of variables.
- Throws:
- javax.help.UnsupportedOperationException- Not implemented.
 
- 
checkIndependenceChecks independence by looking up facts in the list of facts supplied in the constructor.- Specified by:
- checkIndependencein interface- IndependenceTest
- Returns:
- the independence result.
- See Also:
 
- 
getPValuepublic double getPValue()No p-values are available.- Returns:
- Double.NaN.
 
- 
getVariablesReturns the list of variables for the facts.- Specified by:
- getVariablesin interface- IndependenceTest
- Returns:
- This list.
 
- 
getVariableReturns the node with the given name.- Specified by:
- getVariablein interface- IndependenceTest
- Parameters:
- name- The name of the node,
- Returns:
- The node.
 
- 
determines- Throws:
- javax.help.UnsupportedOperationException- Method not implemented.
 
- 
getAlphapublic double getAlpha()Description copied from interface:IndependenceTestReturns the significance level of the independence test.- Specified by:
- getAlphain interface- IndependenceTest
- Returns:
- This level.
- Throws:
- UnsupportedOperationException- Method not implemented.
 
- 
setAlphapublic void setAlpha(double alpha) Description copied from interface:IndependenceTestSets the significance level.- Specified by:
- setAlphain interface- IndependenceTest
- Parameters:
- alpha- This level.
- Throws:
- UnsupportedOperationException- Method not implemented.
 
- 
getDataReturns the facts supplied in the constructor, which constutite a data model.- Specified by:
- getDatain interface- IndependenceTest
- Returns:
- These facts.
- See Also:
 
- 
isVerbosepublic boolean isVerbose()Returns whether verbose output is to be printed.- Specified by:
- isVerbosein interface- IndependenceTest
- Returns:
- True, if so.
 
- 
setVerbosepublic void setVerbose(boolean verbose) Sets whether verbose output is to be printed.- Specified by:
- setVerbosein interface- IndependenceTest
- Parameters:
- verbose- True, if so.
 
 
-