casa
5.7.0-16
|
Combinatorics related functions. More...
#include <Combinatorics.h>
Static Public Member Functions | |
static uInt | factorial (const uInt n) |
Get n! More... | |
static uInt | choose (const uInt n, const uInt k) |
"n choose k" = n!/(k!(n-k)!) Exception is thrown if k > n. More... | |
Static Private Member Functions | |
static void | fillCache (const uInt n) |
Static Private Attributes | |
static Vector< uInt > | _factorialCache |
static volatile uInt | _factorialCacheSize |
static Mutex | theirMutex |
Combinatorics related functions.
Public interface
self-explanatory
Various factorial and combinatorical functions.
Binomial coefficients needed for Images/ImageProfileFitter
Definition at line 67 of file Combinatorics.h.
"n choose k" = n!/(k!(n-k)!) Exception is thrown if k > n.
|
staticprivate |
Referenced by factorial().
Definition at line 85 of file Combinatorics.h.
Referenced by factorial().
|
staticprivate |
Definition at line 86 of file Combinatorics.h.
|
staticprivate |
Definition at line 87 of file Combinatorics.h.