Class BlocksIndTestTs

java.lang.Object
edu.cmu.tetrad.algcomparison.independence.BlocksIndTestTs
All Implemented Interfaces:
BlockIndependenceWrapper, IndependenceWrapper, HasParameters, TetradSerializable, Serializable

@TestOfIndependence(name="Blocks-Test-TS (Trek separation)", command="blocks-test-ts", dataType=Mixed) @Mixed public class BlocksIndTestTs extends Object implements BlockIndependenceWrapper
Wrapper for BF-Blocks-Test.
Version:
$Id: $Id
Author:
josephramsey, bryanandrews
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Initializes a new instance of the DegenerateGaussianLrt class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the data type associated with this independence test implementation.
    Returns a description of the "Blocks Test Lemma 10" independence test.
    Retrieves a list of parameter names required for the "Blocks Test Lemma 10" independence test.
    getTest(DataModel dataModel, Parameters parameters)
    Creates and returns an instance of an independence test based on the specified block structure and parameters provided.
    void
    Sets the specification for block structures required in the "Blocks Test Lemma 10" independence test implementation.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BlocksIndTestTs

      public BlocksIndTestTs()
      Initializes a new instance of the DegenerateGaussianLrt class.
  • Method Details

    • setBlockSpec

      public void setBlockSpec(BlockSpec blockSpec)
      Sets the specification for block structures required in the "Blocks Test Lemma 10" independence test implementation. This method updates the configuration or details defining the nature of the blocks to be used in the test.
      Specified by:
      setBlockSpec in interface BlockIndependenceWrapper
      Parameters:
      blockSpec - the specification for the block structure to be set
    • getTest

      public IndependenceTest getTest(DataModel dataModel, Parameters parameters)
      Creates and returns an instance of an independence test based on the specified block structure and parameters provided.
      Specified by:
      getTest in interface IndependenceWrapper
      Parameters:
      dataModel - The data model which contains the dataset for performing the test.
      parameters - A collection of parameters including test-specific configuration such as the alpha value.
      Returns:
      An instance of the IndependenceTest configured with the provided block specification and parameters.
    • getDescription

      public String getDescription()
      Returns a description of the "Blocks Test Lemma 10" independence test.
      Specified by:
      getDescription in interface BlockIndependenceWrapper
      Specified by:
      getDescription in interface IndependenceWrapper
      Returns:
      A string containing the description of the test.
    • getDataType

      public DataType getDataType()
      Retrieves the data type associated with this independence test implementation.
      Specified by:
      getDataType in interface BlockIndependenceWrapper
      Specified by:
      getDataType in interface IndependenceWrapper
      Returns:
      the data type, which is DataType.Mixed.
    • getParameters

      public List<String> getParameters()
      Retrieves a list of parameter names required for the "Blocks Test Lemma 10" independence test. These parameters define the test's configuration and behavior.
      Specified by:
      getParameters in interface BlockIndependenceWrapper
      Specified by:
      getParameters in interface HasParameters
      Specified by:
      getParameters in interface IndependenceWrapper
      Returns:
      a list of parameter names as strings.