Class MagSemBicScore

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

public class MagSemBicScore extends Object implements Score
Author:
Bryan Andrews
  • Constructor Details

    • MagSemBicScore

      public MagSemBicScore(ICovarianceMatrix covariances)
    • MagSemBicScore

      public MagSemBicScore(DataSet dataSet)
  • Method Details

    • getMag

      public Graph getMag()
    • setMag

      public void setMag(Graph mag)
    • resetMag

      public void resetMag()
    • getOrder

      public List<Node> getOrder()
    • setOrder

      public void setOrder(List<Node> order)
    • resetOrder

      public void resetOrder()
    • localScore

      public double localScore(int i, int... js)
      Specified by:
      localScore in interface Score
      Parameters:
      i - The index of the node.
      js - The indices of the node's parents.
      Returns:
      The score, or NaN if the score cannot be calculated.
    • getPenaltyDiscount

      public double getPenaltyDiscount()
    • setPenaltyDiscount

      public void setPenaltyDiscount(double penaltyDiscount)
    • 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)
      Specified by:
      localScore in interface Score
    • localScore

      public double localScore(int i)
      Specified by:
      localScore in interface Score
    • getSampleSize

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

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

      public boolean isEffectEdge(double bump)
      Specified by:
      isEffectEdge in interface Score
    • 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