|
Mechanics of Defect Evolution Library
|
#include <CombinationWithRepetition.h>
Static Public Member Functions | |
| template<typename T> | |
| static Eigen::Matrix< T, value, k > | combine (const Eigen::Matrix< T, 1, N > &pool) |
Static Public Attributes | |
| static constexpr int | N =_N |
| static constexpr int | k =_k |
| static constexpr int | value =CTM::binomial(N+k-1,k) |
Class template that computes C(N,k), the combination without repetition of k values taken from a pool of N values.
C(N,k) represents the number of ways to form un-ordered sets of k objects taken from a pool of N objects if repetition is not allowed.
Definition at line 26 of file CombinationWithRepetition.h.
|
inlinestatic |
| [in] | pool | a row vector of N values |
Definition at line 36 of file CombinationWithRepetition.h.
|
staticconstexpr |
Definition at line 29 of file CombinationWithRepetition.h.
|
staticconstexpr |
Definition at line 28 of file CombinationWithRepetition.h.
|
staticconstexpr |
Definition at line 32 of file CombinationWithRepetition.h.