Package edu.cmu.tetrad.bayes
Interface ManipulatingBayesUpdater
- All Superinterfaces:
- BayesUpdater,- Serializable,- TetradSerializable
- All Known Implementing Classes:
- ApproximateUpdater,- CptInvariantUpdater,- Identifiability,- JunctionTreeUpdater,- RowSummingExactUpdater
Interface for a Bayes updating algorithm that's capable of doing
 manipulation. In general, manipulating a variable X will eliminate edges into
 X, so the updating operation on the manipulated model will produce different
 results.
- Author:
- Joseph Ramsey
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptiondoublegetMarginal(int variable, int category) voidsetEvidence(Evidence evidence) Sets new evidence for the updater.Methods inherited from interface edu.cmu.tetrad.bayes.BayesUpdatercalculatePriorMarginals, calculateUpdatedMarginals, getBayesIm, getJointMarginal, isJointMarginalSupported
- 
Field Details- 
serialVersionUIDstatic final long serialVersionUID- See Also:
 
 
- 
- 
Method Details- 
getManipulatedBayesImBayesIm getManipulatedBayesIm()- Returns:
- the Bayes instantiated model after manipulations have been applied.
 
- 
getManipulatedGraphGraph getManipulatedGraph()- Returns:
- the graph for the manipulated BayesIm.
 
- 
getEvidenceEvidence getEvidence()- Returns:
- a defensive copy of the evidence.
 
- 
setEvidenceSets new evidence for the updater. Once this is called, old updating results should not longer be available.- Specified by:
- setEvidencein interface- BayesUpdater
 
- 
getUpdatedBayesImBayesIm getUpdatedBayesIm()- Returns:
- the updated Bayes IM--that is, the Bayes IM in which all probabilities of variables conditional on their parents have been updated.
 
- 
getMarginaldouble getMarginal(int variable, int category) - Specified by:
- getMarginalin interface- BayesUpdater
- Returns:
- P(variable = category | evidence) where evidence is getEvidence().
 
 
-