Class ZhangShenBoundScore
java.lang.Object
edu.cmu.tetrad.algcomparison.score.ZhangShenBoundScore
- All Implemented Interfaces:
ScoreWrapper
,HasParameters
,TetradSerializable
,Serializable
@Score(name="ZS Bound Score",
command="zsbound-score",
dataType={Continuous,Covariance})
@LinearGaussian
public class ZhangShenBoundScore
extends Object
implements ScoreWrapper
Wrapper for linear, Gaussian Extended BIC score (Chen and Chen).
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThis class represents the constructor for the ZhangShenBoundScore class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the data type of the score.Returns the description of the Zhang-Shen Bound Score.Returns the list of parameters required for the Zhang-Shen Bound Score.getScore
(DataModel dataSet, Parameters parameters) Calculates the score based on the given data set and parameters.getVariable
(String name) Retrieves the variable with the given name from the data set.
-
Constructor Details
-
ZhangShenBoundScore
public ZhangShenBoundScore()This class represents the constructor for the ZhangShenBoundScore class. It is used to create an instance of the ZhangShenBoundScore class.
-
-
Method Details
-
getScore
Calculates the score based on the given data set and parameters.- Specified by:
getScore
in interfaceScoreWrapper
- Parameters:
dataSet
- The data set to test independence against.parameters
- The parameters of the test.- Returns:
- The calculated score.
- Throws:
IllegalArgumentException
- If the data set is neither a dataset nor a covariance matrix.
-
getDescription
Returns the description of the Zhang-Shen Bound Score.- Specified by:
getDescription
in interfaceScoreWrapper
- Returns:
- the description of the score
-
getDataType
Returns the data type of the score.- Specified by:
getDataType
in interfaceScoreWrapper
- Returns:
- the data type of the score
-
getParameters
Returns the list of parameters required for the Zhang-Shen Bound Score.- Specified by:
getParameters
in interfaceHasParameters
- Specified by:
getParameters
in interfaceScoreWrapper
- Returns:
- The list of parameters required for the score.
-
getVariable
Retrieves the variable with the given name from the data set.- Specified by:
getVariable
in interfaceScoreWrapper
- Parameters:
name
- the name of the variable to retrieve.- Returns:
- the variable as a
Node
object.
-