Create the probabilistic factors associated with an element.
Create the probabilistic factors associated with an element. This method is memoized.
Make a conditional selector factor used in the decomposition of chain and other elements.
Make a conditional selector factor used in the decomposition of chain and other elements. A chain defines a factor over the parent element, each of the possible result elements of the chain, and the overall chain element. This can produce a very large factor when there are many result elements. This is solved by decomposing the chain factor into a product of factors, each of which contains the parent element, one of the result elements, and the overall chain element.
Create the probabilistic factor encoding the probability of evidence in the dependent universe as a function of the values of variables in the parent universe.
Create the probabilistic factor encoding the probability of evidence in the dependent universe as a function of the values of variables in the parent universe. The third argument is the the function to use for computing probability of evidence in the dependent universe. It is assumed that the definition of this function will already contain the right evidence.
Clear the factor cache.
Remove an element from the factor cache, ensuring that factors for the element are regenerated.
Remove an element from the factor cache, ensuring that factors for the element are regenerated. This is important, for example, if evidence on the variable has changed.
Methods for creating probabilistic factors associated with elements.