SubtractBoundedDiscrete
final class SubtractBoundedDiscrete(x1:BoundedDiscrete, x2:BoundedDiscrete) < BoundedDiscrete
Delta function on a difference of two bounded discrete random variates.
Factory Functions
Name | Description |
---|---|
SubtractBoundedDiscrete |
Member Variables
Name | Description |
---|---|
x1:BoundedDiscrete | First discrete random variate. |
x2:BoundedDiscrete | Second discrete random variate. |
x:Integer? | Value for which conditional probabilities have been enumerated. |
x0:Integer | The lower bound of x1 . |
z:Real[_] | The probabilities of all possible values of x1 , starting from x0 . |
Z:Real | 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. |
Factory Function Details
function SubtractBoundedDiscrete(x1:BoundedDiscrete, x2:BoundedDiscrete) -> SubtractBoundedDiscrete