Class HuangMarginalLikelihoodScore
java.lang.Object
edu.cmu.tetrad.algcomparison.score.HuangMarginalLikelihoodScore
- All Implemented Interfaces:
ScoreWrapper, HasParameters, TetradSerializable, Serializable
// * Wrapper for Huang Marginal Likelihood Score.
// *
// * @author josephramsey
// * @version $Id: $Id
//
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance of the SemBicScore. -
Method Summary
Modifier and TypeMethodDescriptionReturns the data type of the current score.Returns the description of the Score.Returns a list of parameters applicable to this method.getScore(DataModel dataSet, Parameters parameters) Returns true, iff x and y are independent, conditional on z for the given data set.getVariable(String name) Retrieves the variable with the given name from the data set.
-
Constructor Details
-
HuangMarginalLikelihoodScore
public HuangMarginalLikelihoodScore()Constructs a new instance of the SemBicScore.
-
-
Method Details
-
getScore
Returns true, iff x and y are independent, conditional on z for the given data set.- Specified by:
getScorein interfaceScoreWrapper- Parameters:
dataSet- The data set to test independence against.parameters- The parameters of the test.- Returns:
- True iff independence holds.
-
getDescription
Returns the description of the Score.- Specified by:
getDescriptionin interfaceScoreWrapper- Returns:
- the description of the Score
-
getDataType
Returns the data type of the current score.- Specified by:
getDataTypein interfaceScoreWrapper- Returns:
- the data type of the score
-
getParameters
Returns a list of parameters applicable to this method.- Specified by:
getParametersin interfaceHasParameters- Specified by:
getParametersin interfaceScoreWrapper- Returns:
- a list of parameters
-
getVariable
Retrieves the variable with the given name from the data set.- Specified by:
getVariablein interfaceScoreWrapper- Parameters:
name- the name of the variable- Returns:
- the variable with the given name, or null if no such variable exists
-