Class DSeparationTest
java.lang.Object
edu.cmu.tetrad.algcomparison.independence.DSeparationTest
- All Implemented Interfaces:
IndependenceWrapper,HasParameters,TetradSerializable,Serializable
@TestOfIndependence(name="D-Separation Test",
command="d-sep-test",
dataType=Graph)
public class DSeparationTest
extends Object
implements IndependenceWrapper
Wrapper for D-separation test. Requires a true DAG as input.
- Author:
- jdramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUse this empty constructor to satisfy the java reflectionDSeparationTest(Graph graph) -
Method Summary
Modifier and TypeMethodDescriptionReturns the data type that the search requires, whether continuous, discrete, or mixed.Returns a short of this independence test.Returns the parameters that this search uses.getTest(DataModel dataSet, Parameters parameters) Returns true iff x and y are independent conditional on z for the given data set.void
-
Constructor Details
-
DSeparationTest
public DSeparationTest()Use this empty constructor to satisfy the java reflection -
DSeparationTest
-
-
Method Details
-
getTest
Description copied from interface:IndependenceWrapperReturns true iff x and y are independent conditional on z for the given data set.- Specified by:
getTestin interfaceIndependenceWrapper- Parameters:
dataSet- The data set to test independence against.parameters- The paramters of the test.- Returns:
- True iff independence holds.
-
getDescription
Description copied from interface:IndependenceWrapperReturns a short of this independence test.- Specified by:
getDescriptionin interfaceIndependenceWrapper- Returns:
- This description.
-
getDataType
Description copied from interface:IndependenceWrapperReturns the data type that the search requires, whether continuous, discrete, or mixed.- Specified by:
getDataTypein interfaceIndependenceWrapper- Returns:
- This type.
-
getParameters
Description copied from interface:IndependenceWrapperReturns the parameters that this search uses.- Specified by:
getParametersin interfaceHasParameters- Specified by:
getParametersin interfaceIndependenceWrapper- Returns:
- A list of String names of parameters.
-
setGraph
-