Class Kci
java.lang.Object
edu.cmu.tetrad.algcomparison.independence.Kci
- All Implemented Interfaces:
IndependenceWrapper
,HasParameters
,TetradSerializable
,Serializable
@TestOfIndependence(name="KCI-Test (Kernel Conditional Independence Test)",
command="kci-test",
dataType=Continuous)
@General
public class Kci
extends Object
implements IndependenceWrapper
Wrapper for KCI test.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
Constructors -
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
setVerbose
(boolean verbose) Sets the verbosity level of the KCI test.
-
Constructor Details
-
Kci
public Kci()`Kci` constructor.
-
-
Method Details
-
getTest
Returns true iff x and y are independent conditional on z for the given data set.Returns a KCI test.
- Specified by:
getTest
in 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.Returns the name of the test.
- Specified by:
getDescription
in interfaceIndependenceWrapper
- Returns:
- This description.
-
getDataType
Returns the data type that the search requires, whether continuous, discrete, or mixed.Returns the data type of the test, which is continuous.
- Specified by:
getDataType
in interfaceIndependenceWrapper
- Returns:
- This type.
- See Also:
-
getParameters
Returns the parameters that this search uses.Returns the parameters of the test.
- Specified by:
getParameters
in interfaceHasParameters
- Specified by:
getParameters
in interfaceIndependenceWrapper
- Returns:
- A list of String names of parameters.
-
setVerbose
public void setVerbose(boolean verbose) Sets the verbosity level of the KCI test. By default true for this (slow) test.- Parameters:
verbose
- a boolean indicating whether verbose output should be enabled (true) or disabled (false).
-