A class representing the actor running the algorithm.
The algorithm used to compute the probability of additional evidence, as created by probAdditionalEvidence.
The algorithm used to compute the probability of additional evidence, as created by probAdditionalEvidence. This algorithm can be different to the one defined in this class. (For example, a one-time algorithm can use an anytime algorithm for additional evidence.)
Run a single step of the algorithm.
Run a single step of the algorithm. The algorithm must be able to provide answers after each step.
Removes the evidence provided in the constructor from the universe.
Removes the evidence provided in the constructor from the universe.
The actor running the algorithm.
The actor running the algorithm.
A handler of services provided by the algorithm.
A handler of services provided by the algorithm.
Since probability of evidence algorithms introduce additional evidence (namely, their evidence argument), into an existing universe, a mechanism must be provided for introducing the evidence when the algorithm begins and cleaning it up at the end.
Since probability of evidence algorithms introduce additional evidence (namely, their evidence argument), into an existing universe, a mechanism must be provided for introducing the evidence when the algorithm begins and cleaning it up at the end. This is achieved with the initialize method, called when the algorithm starts, and the cleanUp method, called when the algorithm is killed.
Kill the algorithm so that it is inactive.
Kill the algorithm so that it is inactive. It will no longer be able to provide answers.Throws AlgorithmInactiveException if the algorithm is not active.
The computed log probability of evidence
The computed log probability of evidence
Returns an algorithm to compute the probability of the additional evidence provided.
Returns an algorithm to compute the probability of the additional evidence provided.
The computed probability of evidence
The computed probability of evidence
Resume the computation of the algorithm, if it has been stopped.
Resume the computation of the algorithm, if it has been stopped. Throws AlgorithmInactiveException if the algorithm is not active.
Start the algorithm and make it active.
Start the algorithm and make it active. After it returns, the algorithm must be ready to provide answers. Throws AlgorithmActiveException if the algorithm is already active.
Stop the algorithm from computing.
Stop the algorithm from computing. The algorithm is still ready to provide answers after it returns. Throws AlgorithmInactiveException if the algorithm is not active.
Optional function to run when the algorithm is stopped (not killed).
Optional function to run when the algorithm is stopped (not killed). Used in samplers to update lazy values
Returns the probability of evidence of the universe on which the algorithm operates.
Returns the probability of evidence of the universe on which the algorithm operates. Throws AlgorithmInactiveException if the algorithm is not active.
Anytime algorithms that compute probability of evidence. A class that implements this trait must implement initialize, runStep, and computeProbEvidence methods.