Class BasisFunctionBicScoreTabular
java.lang.Object
edu.cmu.tetrad.algcomparison.score.BasisFunctionBicScoreTabular
- All Implemented Interfaces:
ScoreWrapper, HasParameters, TetradSerializable, Serializable
Wrapper for the full-sample (tabular) Basis Function BIC Score, delegating to
BasisFunctionBicScoreFullSample. Unlike the covariance-based
BasisFunctionBicScore wrapper, this version computes each regression on the full
sample rather than from a covariance matrix.
This wrapper intentionally carries no @Score annotation, so it does not appear in the
interface's score dropdown; it exists for programmatic use, in particular py-tetrad's
use_basis_function_bic_fs, which instantiates it by this class name.
- Version:
- $Id: $Id
- Author:
- josephramsey, bryanandrews
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the BasisFunctionBicScoreTabular wrapper. -
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 dataSet, Parameters parameters) Returns true, iff x and y are independent, conditional on z for the given data set.getVariable(String name) Returns the variable with the given name.
-
Constructor Details
-
BasisFunctionBicScoreTabular
public BasisFunctionBicScoreTabular()Initializes a new instance of the BasisFunctionBicScoreTabular wrapper.
-
-
Method Details
-
getScore
Returns true, iff x and y are independent, conditional on z for the given data set.- Specified by:
getScorein interfaceScoreWrapper- Parameters:
dataSet- The data set to test independence against.parameters- The parameters of the test.- Returns:
- True iff independence holds.
-
getDescription
Returns a short of this independence test.- Specified by:
getDescriptionin interfaceScoreWrapper- Returns:
- This description.
-
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.
-