Class BayesProperties

java.lang.Object
edu.cmu.tetrad.bayes.BayesProperties

public final class BayesProperties extends Object
Calculates some scores for Bayes nets as a whole.
Author:
josephramsey
  • Constructor Details

    • BayesProperties

      public BayesProperties(DataSet dataSet)
  • Method Details

    • getLikelihoodRatioP

      public BayesProperties.LikelihoodRet getLikelihoodRatioP(Graph graph)
      Calculates the p-value of the graph with respect to the given data.
    • getChisq

      public double getChisq()
      Call after calling getLikelihoodP().
    • getDof

      public double getDof()
      Call after calling getLikelihoodP().
    • getBic

      public double getBic()
      Call after calling getLikelihoodP().
    • getLikelihood

      public double getLikelihood()
      Call after calling getLikelihoodP().
    • getSampleSize

      public int getSampleSize()
    • getVariable

      public Node getVariable(String targetName)