Abstract method to return the domain of this variable.
Abstract method to return the domain of this variable.
Abstract method to return the value of this variable.
Abstract method to return the value of this variable.
Value comparisons (as distinct from variable pointer equality)
Value comparisons (as distinct from variable pointer equality)
Return the distribution over values of this variable given the model and given that all other variables' values are fixed.
Return the distribution over values of this variable given the model and given that all other variables' values are fixed.
Return the distribution over values of this variable given the model and given that all other variables' values are fixed.
Return the distribution over values of this variable given the model and given that all other variables' values are fixed.
Return the distribution over values of this variable given some factors (which presumably neighbor this DiscreteVar) and given that all other variables' values are fixed.
Return the distribution over values of this variable given some factors (which presumably neighbor this DiscreteVar) and given that all other variables' values are fixed.
If false, then when += is called with a value (or index) outside the Domain, an error is thrown.
If false, then when += is called with a value (or index) outside the Domain, an error is thrown. If true, then no error is thrown, and request to add the outside-Domain value is simply ignored.
A DiscreteVar whose integers 0...N are associated with an categorical objects of type C. Concrete implementations include CategoricalVariable and BooleanVariable.