Interface ManipulatingBayesUpdater

All Superinterfaces:
BayesUpdater, Serializable, TetradSerializable
All Known Implementing Classes:
ApproximateUpdater, CptInvariantUpdater, Identifiability, JunctionTreeUpdater, RowSummingExactUpdater

public interface ManipulatingBayesUpdater extends BayesUpdater
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:
josephramsey
  • Field Details

  • Method Details

    • getManipulatedBayesIm

      BayesIm getManipulatedBayesIm()
      Returns the manipulated Bayes IM. This is the Bayes IM in which the variables in the manipulation have been removed from the graph.
      Returns:
      the Bayes instantiated model after manipulations have been applied.
    • getManipulatedGraph

      Graph getManipulatedGraph()
      Returns the manipulated graph. This is the graph in which the variables in the manipulation have been removed from the graph.
      Returns:
      the graph for the manipulated BayesIm.
    • getEvidence

      Evidence getEvidence()
      Returns the manipulation that was used to manipulate the Bayes IM.
      Returns:
      a defensive copy of the evidence.
    • setEvidence

      void setEvidence(Evidence evidence)
      Sets new evidence for the updater. Once this is called, old updating results should not longer be available.
      Specified by:
      setEvidence in interface BayesUpdater
      Parameters:
      evidence - the new evidence.
    • getUpdatedBayesIm

      BayesIm getUpdatedBayesIm()
      Returns the updated Bayes IM. This is the Bayes IM in which all probabilities of variables conditional on their parents have been updated.
      Returns:
      the updated Bayes IM--that is, the Bayes IM in which all probabilities of variables conditional on their parents have been updated.
    • getMarginal

      double getMarginal(int variable, int category)
      Returns the updated graph. This is the graph in which all probabilities of variables conditional on their parents have been updated.
      Specified by:
      getMarginal in interface BayesUpdater
      Parameters:
      variable - variable index
      category - category index
      Returns:
      P(variable = category | evidence) where evidence is getEvidence().