Class ProbabilisticTest
java.lang.Object
edu.cmu.tetrad.algcomparison.independence.ProbabilisticTest
- All Implemented Interfaces:
IndependenceWrapper,HasParameters,TetradSerializable,Serializable
@TestOfIndependence(name="Probabilistic Test",
command="prob-test",
dataType=Discrete)
public class ProbabilisticTest
extends Object
implements IndependenceWrapper
Dec 17, 2018 3:44:46 PM
- Version:
- $Id: $Id
- Author:
- Chirayu Kong Wongchokprasitti, PhD (chw20@pitt.edu)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance of the ProbabilisticTest class. -
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.
-
Constructor Details
-
ProbabilisticTest
public ProbabilisticTest()Constructs a new instance of the ProbabilisticTest class.
-
-
Method Details
-
getTest
Returns 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
Returns a short of this independence test.- Specified by:
getDescriptionin interfaceIndependenceWrapper- Returns:
- This description.
-
getDataType
Returns the data type that the search requires, whether continuous, discrete, or mixed.- Specified by:
getDataTypein interfaceIndependenceWrapper- Returns:
- This type.
-
getParameters
Returns the parameters that this search uses.- Specified by:
getParametersin interfaceHasParameters- Specified by:
getParametersin interfaceIndependenceWrapper- Returns:
- A list of String names of parameters.
-