egttools.distributions.binom

binom(n: int, k: int) float

Calculates the binomial coefficient C(n, k).

This method is approximate and will return a float value. The result should be equivalent to the one produced by scipy.special.binom.

Parameters
  • n (int) – size of the fixed set

  • k (int) – size of the unordered subset

Returns

The binomial coefficient C(n, k).

Return type

float