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 SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceInterface for an estimator.
- 
Constructor SummaryConstructorsConstructorDescriptionEmBayesProperties(DataSet dataSet, Graph graph) Constructor for EmBayesProperties.
- 
Method SummaryModifier 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- 
getBicpublic 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
 
- 
getLikelihoodRatioPpublic double getLikelihoodRatioP()Calculates the p-value of the graph with respect to the given data.- Returns:
- a double
 
- 
getBayesPmGetter for the field bayesPm.- Returns:
- a BayesPmobject
 
- 
getPValueDfpublic int getPValueDf()Getter for the field pValueDf.- Returns:
- a int
 
- 
getPValueChisqpublic double getPValueChisq()getPValueChisq. - Returns:
- a double
 
- 
getEstimatorGetter for the field estimator.- Returns:
- a EmBayesProperties.Estimatorobject
 
- 
setEstimatorSetter for the field estimator.- Parameters:
- estimator- a- EmBayesProperties.Estimatorobject
 
- 
setGraphSetter for the field graph.- Parameters:
- graph- a- Graphobject
 
 
-