Package edu.cmu.tetrad.bayes
Class EmBayesProperties
java.lang.Object
edu.cmu.tetrad.bayes.EmBayesProperties
Calculates some scores for Bayes nets as a whole.
- Version:
- $Id: $Id
- Author:
- josephramsey
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface for an estimator. -
Constructor Summary
ConstructorsConstructorDescriptionEmBayesProperties(DataSet dataSet, Graph graph) Constructor for EmBayesProperties. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldbayesPm.doublegetBic()Calculates the BIC (Bayes Information Criterion) score for a BayesPM with respect to a given discrete data set.Getter for the fieldestimator.doubleCalculates the p-value of the graph with respect to the given data.doublegetPValueChisq.intGetter for the fieldpValueDf.voidsetEstimator(EmBayesProperties.Estimator estimator) Setter for the fieldestimator.voidSetter for the fieldgraph.
-
Constructor Details
-
Method Details
-
getBic
public double getBic()Calculates the BIC (Bayes Information Criterion) score for a BayesPM with respect to a given discrete data set. Following formulas of Andrew Moore, www.cs.cmu.edu/~awm.- Returns:
- a double
-
getLikelihoodRatioP
public double getLikelihoodRatioP()Calculates the p-value of the graph with respect to the given data.- Returns:
- a double
-
getBayesPm
Getter for the field
bayesPm.- Returns:
- a
BayesPmobject
-
getPValueDf
public int getPValueDf()Getter for the field
pValueDf.- Returns:
- a int
-
getPValueChisq
public double getPValueChisq()getPValueChisq.
- Returns:
- a double
-
getEstimator
Getter for the field
estimator.- Returns:
- a
EmBayesProperties.Estimatorobject
-
setEstimator
Setter for the field
estimator.- Parameters:
estimator- aEmBayesProperties.Estimatorobject
-
setGraph
Setter for the field
graph.- Parameters:
graph- aGraphobject
-