Class BlocksIndTest

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

@Mixed @Deprecated(since="7.9", forRemoval=false) public class BlocksIndTest extends Object implements BlockIndependenceWrapper
Deprecated.
Wrapper for BF-Blocks-Test.
Version:
$Id: $Id
Author:
josephramsey, bryanandrews
See Also:
  • Constructor Details

    • BlocksIndTest

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

    • setBlockSpec

      public void setBlockSpec(BlockSpec blockSpec)
      Deprecated.
      Sets the BlockSpec for this instance. The BlockSpec determines how data is divided into blocks for statistical independence testing.
      Specified by:
      setBlockSpec in interface BlockIndependenceWrapper
      Parameters:
      blockSpec - the BlockSpec object to set, specifying the configuration for dividing data into blocks for analysis.
    • getTest

      public IndependenceTest getTest(DataModel dataSet, Parameters parameters)
      Deprecated.
      Creates and returns an instance of the IndTestBlocksWilkes initialized with a specific block specification and a significance level extracted from the provided parameters.
      Specified by:
      getTest in interface IndependenceWrapper
      Parameters:
      dataSet - A DataModel object representing the dataset to be used for the independence test.
      parameters - A Parameters object containing the configuration and attributes, including the alpha level for the test.
      Returns:
      An IndependenceTest instance configured with the block specification and the significance level set from the passed parameters.
    • getDescription

      public String getDescription()
      Deprecated.
      Returns a description of the test.
      Specified by:
      getDescription in interface BlockIndependenceWrapper
      Specified by:
      getDescription in interface IndependenceWrapper
      Returns:
      A string describing the test as "Blocks Test (Requires blocks)".
    • getDataType

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

      public List<String> getParameters()
      Deprecated.
      Retrieves the parameters used by the test. This includes configuration keys that determine the behavior or thresholds of the test.
      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, indicating the configurable attributes for the test.