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 interface
Interface for an estimator. -
Constructor Summary
ConstructorsConstructorDescriptionEmBayesProperties
(DataSet dataSet, Graph graph) Constructor for EmBayesProperties. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldbayesPm
.double
getBic()
Calculates the BIC (Bayes Information Criterion) score for a BayesPM with respect to a given discrete data set.Getter for the fieldestimator
.double
Calculates the p-value of the graph with respect to the given data.double
getPValueChisq.int
Getter for the fieldpValueDf
.void
setEstimator
(EmBayesProperties.Estimator estimator) Setter for the fieldestimator
.void
Setter for the fieldgraph
.
-
Constructor Details
-
EmBayesProperties
-
-
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
-
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.Estimator
object
-
setEstimator
Setter for the field
estimator
.- Parameters:
estimator
- aEmBayesProperties.Estimator
object
-
setGraph
-