Interface BlockScoreWrapper

All Superinterfaces:
HasParameters, ScoreWrapper, Serializable, TetradSerializable
All Known Implementing Classes:
BlocksBicScore

public interface BlockScoreWrapper extends ScoreWrapper, TetradSerializable
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

    Fields
    Modifier and Type
    Field
    Description
    static final long
    Constant serialVersionUID=23L
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns 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.
    Returns the variable with the given name.
    void
    Sets the block specification to be used by this implementation.
  • Field Details

    • serialVersionUID

      static final long serialVersionUID
      Constant serialVersionUID=23L
      See Also:
  • Method Details

    • setBlockSpec

      void setBlockSpec(BlockSpec blockSpec)
      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

      Score getScore(DataModel model, Parameters parameters)
      Computes and returns a score for the given data model and parameters.
      Specified by:
      getScore in interface ScoreWrapper
      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:
      getDescription in interface ScoreWrapper
      Returns:
      This description.
    • getDataType

      DataType getDataType()
      Returns the data type that the search requires, whether continuous, discrete, or mixed.
      Specified by:
      getDataType in interface ScoreWrapper
      Returns:
      This type.
    • getParameters

      List<String> getParameters()
      Returns the parameters that this search uses.
      Specified by:
      getParameters in interface HasParameters
      Specified by:
      getParameters in interface ScoreWrapper
      Returns:
      A list for String names of parameters.
    • getVariable

      Node getVariable(String name)
      Returns the variable with the given name.
      Specified by:
      getVariable in interface ScoreWrapper
      Parameters:
      name - the name.
      Returns:
      the variable.