Package edu.cmu.tetrad.bayes
Class DataSetProbs
java.lang.Object
edu.cmu.tetrad.bayes.DataSetProbs
Estimates maximum likelihood probabilities directly from data on the fly.
- Author:
- Joseph Ramsey
- 
Constructor SummaryConstructorsConstructorDescriptionDataSetProbs(DataSet dataSet) Creates a cell count table for the given data set.
- 
Method SummaryModifier and TypeMethodDescriptiondoublegetCellProb(int[] variableValues) doublegetConditionalProb(Proposition assertion, Proposition condition) doublegetProb(Proposition assertion) 
- 
Constructor Details- 
DataSetProbsCreates a cell count table for the given data set.
 
- 
- 
Method Details- 
getCellProbpublic double getCellProb(int[] variableValues) - Returns:
- the estimated probability for the given cell. The order of the variable values is the order of the variables in getVariable().
 
- 
getProb- Returns:
- the estimated probability of the given proposition.
 
- 
getConditionalProb- Returns:
- the estimated conditional probability for the given assertion conditional on the given condition.
 
- 
getDataSet- Returns:
- the dataset that this is estimating probabilities for.
 
- 
getVariables- Returns:
- the list of variables for the dataset that this is estimating probabilities for.
 
 
-