final class AddBoundedDiscrete(x1:BoundedDiscrete, x2:BoundedDiscrete) < BoundedDiscrete

Delta function on a sum of two bounded discrete distributions.

Name Description

### Member Variables

Name Description
x1:BoundedDiscrete First node.
x2:BoundedDiscrete Second node.
x:Integer? Value for which conditional probabilities have been enumerated.
x0:Integer If clamped, then the lower bound of x1.
z:Real[_] If clamped, then the probabilities of all possible values of x1, starting from x0.
Z:Real If clamped, then the sum of z.
alreadyUpdated:Boolean Has this node already updated its parents? Nodes of this type have two parent nodes, and because of this, their update() member function is called twice. This flag is a hack to ensure that the actual update is performed only once.