Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Static Public Member Functions | List of all members
BIAS::BinomialCoefficient Class Reference

Efficient computation of the binomial coefficient. More...

#include <Base/Math/BinomialCoefficient.hh>

Static Public Member Functions

static long long unsigned Compute (const unsigned n, const unsigned k)
 Computation of the binomial coefficient "n over k" The function throws an exception when overflow occurs. More...
 

Detailed Description

Efficient computation of the binomial coefficient.

Author
woelk 01/2010 (c) www.vision-n.de

Definition at line 31 of file BinomialCoefficient.hh.

Member Function Documentation

long long unsigned BinomialCoefficient::Compute ( const unsigned  n,
const unsigned  k 
)
static

Computation of the binomial coefficient "n over k" The function throws an exception when overflow occurs.

Definition at line 12 of file BinomialCoefficient.cpp.

Referenced by BIAS::COSAC< SolutionType >::SolveMaster().


The documentation for this class was generated from the following files: