bob.core.random.binomial_float64

class bob.core.random.binomial_float64((object)arg1[, (float)t=1[, (float)p=0.5]]) → None :

Bases: Boost.Python.instance

A Binomial distribution.

The distribution class binomial_float64 (boost::binomial_distribution<float64>) models a binomial random distribution. The binomial distribution is an integer valued distribution with two parameters, ‘t’ and ‘p’. The values of the distribution are within the range [0,t]. The probability that the distribution produces a value k is \({{t}\choose{k}}p^k(1-p)^{t-k}\).

Constructs a new object of this type, ‘t’ and ‘p’ are parameters of the distribution. Requires \(t >=0\) and \(0 <= p <= 1\).

__init__((object)arg1[, (float)t=1[, (float)p=0.5]]) → None :

Constructs a new object of this type, ‘t’ and ‘p’ are parameters of the distribution. Requires \(t >=0\) and \(0 <= p <= 1\).

Methods

__init__((object)arg1 [, (float)t=1 [, …) Constructs a new object of this type, ‘t’ and ‘p’ are parameters of the distribution.
reset((binomial_float64)arg1) this is a noop for this distribution, but is here for consistence with other APIs

Attributes

p
t
__call__((binomial_float64)self, (mt19937)rng) → int
p
reset((binomial_float64)arg1) → None :

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

t