Class MnlrScore

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

public class MnlrScore extends Object implements Score
Implements a mixed variable polynomial BIC score for fGES.

As for all scores in Tetrad, higher scores mean more dependence, and negative scores indicate independence.

Version:
$Id: $Id
Author:
Bryan Andrews
  • Constructor Details

    • MnlrScore

      public MnlrScore(DataSet dataSet, double structurePrior, int fDegree)
      Constructor.
      Parameters:
      dataSet - The mixed dataset being analyzed.
      structurePrior - The structure prior
      fDegree - The f degree.
  • Method Details

    • localScore

      public double localScore(int i, int... parents)
      The local score of the child given its parents.
      Specified by:
      localScore in interface Score
      Parameters:
      i - a int
      parents - a int
      Returns:
      a double
    • localScoreDiff

      public double localScoreDiff(int x, int y, int[] z)
      localScore(y | z, x) - localScore(y | z).
      Specified by:
      localScoreDiff in interface Score
      Parameters:
      x - a int
      y - a int
      z - an array of int objects
      Returns:
      a double
    • getSampleSize

      public int getSampleSize()
      Returns the sample size.
      Specified by:
      getSampleSize in interface Score
      Returns:
      This size.
    • isEffectEdge

      public boolean isEffectEdge(double bump)
      Returns true iff the edge between x and y is an effect edge.

      A method for FGES returning a judgment of whether an edge with a given bump counts as a effect edge.

      Specified by:
      isEffectEdge in interface Score
      Parameters:
      bump - The bump.
      Returns:
      True iff the edge between x and y is an effect edge.
      See Also:
    • getVariables

      public List<Node> getVariables()
      The variables of the score.

      Returns the variables.

      Specified by:
      getVariables in interface Score
      Returns:
      This list.
    • getMaxDegree

      public int getMaxDegree()
      Returns the max degree, by default 1000.

      Returns a maximum degree used by some algorithms.

      Specified by:
      getMaxDegree in interface Score
      Returns:
      The max degree.