Class ScoredIndTest

java.lang.Object
edu.cmu.tetrad.search.ScoredIndTest
All Implemented Interfaces:
Score

public class ScoredIndTest extends Object implements Score
Implements Chickering and Meek's (2002) locally consistent score criterion.
Author:
Joseph Ramsey
  • Constructor Details

    • ScoredIndTest

      public ScoredIndTest(IndependenceTest test)
      Constructs the score using a covariance matrix.
  • Method Details

    • localScore

      public double localScore(int i, int[] parents)
      Calculates the sample likelihood and BIC score for i given its parents in a simple SEM model
      Specified by:
      localScore in interface Score
      Parameters:
      i - The index of the node.
      parents - The indices of the node's parents.
      Returns:
      The score, or NaN if the score cannot be calculated.
    • localScoreDiff

      public double localScoreDiff(int x, int y, int[] z)
      Specified by:
      localScoreDiff in interface Score
    • localScoreDiff

      public double localScoreDiff(int x, int y)
      Specified by:
      localScoreDiff in interface Score
    • localScore

      public double localScore(int i, int parent)
      Specialized scoring method for a single parent. Used to speed up the effect edges search.
      Specified by:
      localScore in interface Score
    • localScore

      public double localScore(int i)
      Specialized scoring method for no parents. Used to speed up the effect edges search.
      Specified by:
      localScore in interface Score
    • isEffectEdge

      public boolean isEffectEdge(double bump)
      Specified by:
      isEffectEdge in interface Score
    • getDataSet

      public DataSet getDataSet()
    • isVerbose

      public boolean isVerbose()
    • setVerbose

      public void setVerbose(boolean verbose)
    • getVariables

      public List<Node> getVariables()
      Specified by:
      getVariables in interface Score
    • getSampleSize

      public int getSampleSize()
      Specified by:
      getSampleSize in interface Score
    • getAlternativePenalty

      public boolean getAlternativePenalty()
    • getVariable

      public Node getVariable(String targetName)
      Specified by:
      getVariable in interface Score
    • getMaxDegree

      public int getMaxDegree()
      Specified by:
      getMaxDegree in interface Score
    • determines

      public boolean determines(List<Node> z, Node y)
      Specified by:
      determines in interface Score