Class MSeparationScore
java.lang.Object
edu.cmu.tetrad.algcomparison.score.MSeparationScore
- All Implemented Interfaces:
ScoreWrapper
,HasParameters
,TetradSerializable
,Serializable
@Score(name="M-separation Score",
command="m-sep-score",
dataType=Graph)
public class MSeparationScore
extends Object
implements ScoreWrapper
Wrapper for Fisher Z test.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUse this empty constructor to satisfy the java reflectionMSeparationScore
(Graph graph) Constructor for MSeparationScore. -
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.getScore
(DataModel dataSet, Parameters parameters) Returns true, iff x and y are independent, conditional on z for the given data set.getVariable
(String name) Returns the variable with the given name.void
Setter for the fieldgraph
.
-
Constructor Details
-
MSeparationScore
public MSeparationScore()Use this empty constructor to satisfy the java reflection -
MSeparationScore
-
-
Method Details
-
getScore
Returns true, iff x and y are independent, conditional on z for the given data set.- Specified by:
getScore
in interfaceScoreWrapper
- Parameters:
dataSet
- The data set to test independence against.parameters
- The parameters of the test.- Returns:
- True iff independence holds.
-
getDescription
Returns a short of this independence test.- Specified by:
getDescription
in interfaceScoreWrapper
- Returns:
- This description.
-
getDataType
Returns the data type that the search requires, whether continuous, discrete, or mixed.- Specified by:
getDataType
in interfaceScoreWrapper
- Returns:
- This type.
-
getParameters
Returns the parameters that this search uses.- Specified by:
getParameters
in interfaceHasParameters
- Specified by:
getParameters
in interfaceScoreWrapper
- Returns:
- A list for String names of parameters.
-
getVariable
Returns the variable with the given name.- Specified by:
getVariable
in interfaceScoreWrapper
- Parameters:
name
- the name.- Returns:
- the variable.
-
setGraph
-