Package edu.cmu.tetrad.bayes
Class StoredCellProbs
java.lang.Object
edu.cmu.tetrad.bayes.StoredCellProbs
- All Implemented Interfaces:
TetradSerializable
,Serializable
Creates a table of stored cell probabilities for the given list of variables. Since for a moderate number of variables and for a moderate number of values per variables this could get to be a very large table, it might not be a good idea to use this class except for unit testing.> 0
- Author:
- josephramsey
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic StoredCellProbs
createCellTable
(BayesIm bayesIm) static StoredCellProbs
createRandomCellTable
(List<Node> variables) double
getCellProb
(int[] variableValues) double
getConditionalProb
(Proposition assertion, Proposition condition) double
getProb
(Proposition assertion) static StoredCellProbs
Generates a simple exemplar of this class to test serialization.toString()
-
Method Details
-
createRandomCellTable
-
createCellTable
-
serializableInstance
Generates a simple exemplar of this class to test serialization. -
getCellProb
public double getCellProb(int[] variableValues) - Returns:
- the probability for the given cell, specified as a particular combination of variable values, for the list of variables (in order) returned by get
-
getProb
-
getConditionalProb
-
getVariables
-
toString
-