# LostTech.TensorFlow : API Documentation

Type Binomial

Namespace tensorflow.contrib.distributions

Parent Distribution

Interfaces IBinomial

Binomial distribution.

This distribution is parameterized by `probs`, a (batch of) probabilities for drawing a `1` and `total_count`, the number of trials per draw from the Binomial.

#### Mathematical Details

The Binomial is a distribution over the number of `1`'s in `total_count` independent trials, with each trial having the same probability of `1`, i.e., `probs`.

The probability mass function (pmf) is,

```none pmf(k; n, p) = p**k (1 - p)**(n - k) / Z Z = k! (n - k)! / n! ```

where: * `total_count = n`, * `probs = p`, * `Z` is the normalizing constant, and, * `n!` is the factorial of `n`.

#### Examples

Create a single distribution, corresponding to 5 coin flips. Create a single distribution (using logits), corresponding to 5 coin flips. Creates 3 distributions with the third distribution most likely to have successes. The distribution functions can be evaluated on counts.
Show Example
`dist = Binomial(total_count=5., probs=.5) `

### Public properties

#### objectlogits get;

Log-odds of drawing a `1`.

#### objectlogits_dyn get;

Log-odds of drawing a `1`.

#### Tensorprobs get;

Probability of drawing a `1`.

#### objectprobs_dyn get;

Probability of drawing a `1`.

#### objecttotal_count get;

Number of trials.

#### objecttotal_count_dyn get;

Number of trials.