Interface BlockScoreWrapper
- All Superinterfaces:
HasParameters,ScoreWrapper,Serializable,TetradSerializable
- All Known Implementing Classes:
BlocksBicScore
Represents an interface for scoring data models using predefined block structures. This interface extends
ScoreWrapper and TetradSerializable, providing additional functionality for handling block-based
scoring.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longConstantserialVersionUID=23L -
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 model, Parameters parameters) Computes and returns a score for the given data model and parameters.getVariable(String name) Returns the variable with the given name.voidsetBlockSpec(BlockSpec blockSpec) Sets the block specification to be used by this implementation.
-
Field Details
-
serialVersionUID
static final long serialVersionUIDConstantserialVersionUID=23L- See Also:
-
-
Method Details
-
setBlockSpec
Sets the block specification to be used by this implementation.- Parameters:
blockSpec- The block specification, which contains details about the dataset, blocks, and block nodes used in the algorithm.
-
getScore
Computes and returns a score for the given data model and parameters.- Specified by:
getScorein interfaceScoreWrapper- Parameters:
model- The data model containing the data to be scored.parameters- The parameters to be used for score computation.- Returns:
- A Score object representing the computed score.
-
getDescription
String getDescription()Returns a short of this independence test.- Specified by:
getDescriptionin interfaceScoreWrapper- Returns:
- This description.
-
getDataType
DataType getDataType()Returns the data type that the search requires, whether continuous, discrete, or mixed.- Specified by:
getDataTypein interfaceScoreWrapper- Returns:
- This type.
-
getParameters
Returns the parameters that this search uses.- Specified by:
getParametersin interfaceHasParameters- Specified by:
getParametersin interfaceScoreWrapper- Returns:
- A list for String names of parameters.
-
getVariable
Returns the variable with the given name.- Specified by:
getVariablein interfaceScoreWrapper- Parameters:
name- the name.- Returns:
- the variable.
-