Class KimEtAlScores

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

public class KimEtAlScores extends Object implements Score
Implements the continuous BIC score for FGES.
Author:
Joseph Ramsey
  • Constructor Details

    • KimEtAlScores

      public KimEtAlScores(ICovarianceMatrix covariances)
      Constructs the score using a covariance matrix.
    • KimEtAlScores

      public KimEtAlScores(DataSet dataSet)
      Constructs the score using a covariance matrix.
  • Method Details

    • localScoreDiff

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

      public double localScore(int i, int... parents)
      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.
    • getCovariances

      public ICovarianceMatrix getCovariances()
      Specialized scoring method for a single parent. Used to speed up the effect edges search.
    • getSampleSize

      public int getSampleSize()
      Specified by:
      getSampleSize 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
    • setVariables

      public void setVariables(List<Node> variables)
    • 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
    • setRuleType

      public void setRuleType(KimEtAlScores.RuleType ruleType)
    • setLambda

      public void setLambda(double lambda)
    • getPenaltyDiscount

      public double getPenaltyDiscount()
    • setPenaltyDiscount

      public void setPenaltyDiscount(double penaltyDiscount)