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 variable put into an index, and whose categorical value is the variable itself. For example, you can create 10 'Person extends ItemizedVar[Person]' objects, and upon creation each will be mapped to a unique integer 0..9. p1 = new Person; p1.index == 0; p1.categoryValue == p1.