edu.cmu.tetrad.algcomparison.independence.IndependenceWrapper Maven / Gradle / Ivy
The newest version!
package edu.cmu.tetrad.algcomparison.independence;
import edu.cmu.tetrad.algcomparison.utils.HasParameters;
import edu.cmu.tetrad.data.DataModel;
import edu.cmu.tetrad.data.DataType;
import edu.cmu.tetrad.search.IndependenceTest;
import edu.cmu.tetrad.util.Parameters;
import edu.cmu.tetrad.util.TetradSerializable;
import java.util.List;
/**
* Interface that algorithm must implement.
*
* @author josephramsey
* @version $Id: $Id
*/
public interface IndependenceWrapper extends HasParameters, TetradSerializable {
/**
* Constant serialVersionUID=23L
*/
long serialVersionUID = 23L;
/**
* Returns true iff x and y are independent conditional on z for the given data set.
*
* @param dataSet The data set to test independence against.
* @param parameters The paramters of the test.
* @return True iff independence holds.
*/
IndependenceTest getTest(DataModel dataSet, Parameters parameters);
/**
* Returns a short of this independence test.
*
* @return This description.
*/
String getDescription();
/**
* Returns the data type that the search requires, whether continuous, discrete, or mixed.
*
* @return This type.
*/
DataType getDataType();
/**
* Returns the parameters that this search uses.
*
* @return A list of String names of parameters.
*/
List getParameters();
}