Class Domains.DomStochastic

  • All Implemented Interfaces:
    Domains.IDom
    Enclosing class:
    Domains

    public static final class Domains.DomStochastic
    extends Domains.DomBasic
    The class for representing the domain of a stochastic variable.
    • Field Detail

      • probas

        public final Values.SimpleValue[] probas
        The probabilities associated with the values of the domain: probas[i] is the probability of values[i]. Probabilities can be given as rational, decimal, or integer values (only, 0 and 1 for integer).
    • Constructor Detail

      • DomStochastic

        protected DomStochastic​(Object[] values,
                                Values.SimpleValue[] probas)
        Builds a stochastic domain, with the specified values and the specified probabilities.