bob.core.random.discrete_int32¶
-
class
bob.core.random.discrete_int32((object)arg1, (object)probabilities) → object :¶ Bases:
Boost.Python.instanceThe distribution class discrete_int32 (boost::random::discrete_distribution<int32>) models a discrete distribution. The discrete distribution has a single parameter ‘probabilities’, which is a 1D numpy array containing the probability associated with each integer value in the range [0,t[, where t is the length of this vector. The values of the distribution are hence within the range [0,t[.
Constructs a new object of this type; the ‘probabilities’ are the parameters of the discrete distribution.
-
__init__((object)arg1, (object)probabilities) → object :¶ Constructs a new object of this type; the ‘probabilities’ are the parameters of the discrete distribution.
Methods
__init__((object)arg1, (object)probabilities)Constructs a new object of this type; the ‘probabilities’ are the parameters of the discrete distribution. reset((discrete_int32)arg1)this is a noop for this distribution, but is here for consistence with other APIs Attributes
probabilities-
__call__((discrete_int32)self, (mt19937)rng) → int¶
-
probabilities¶
-
reset((discrete_int32)arg1) → None :¶ this is a noop for this distribution, but is here for consistence with other APIs
-