bob.core.random.discrete_int16

class bob.core.random.discrete_int16((object)arg1, (object)probabilities) → object :

Bases: Boost.Python.instance

The distribution class discrete_int16 (boost::random::discrete_distribution<int16>) 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_int16)arg1) this is a noop for this distribution, but is here for consistence with other APIs

Attributes

probabilities
__call__((discrete_int16)self, (mt19937)rng) → int
probabilities
reset((discrete_int16)arg1) → None :

this is a noop for this distribution, but is here for consistence with other APIs