Parameters
int
n
Number of elements in the set.
int
k
Number of elements to choose from the set. Each element is chosen at most once.
Return
double
Maximum number of combinations.
Type Combinatorics
Namespace MathNet.Numerics
int
nNumber of elements in the set.
int
kNumber of elements to choose from the set. Each element is chosen at most once.
double
Maximum number of combinations.
int
nNumber of elements in the set.
int
kNumber of elements to choose from the set. Each element is chosen 0, 1 or multiple times.
double
Maximum number of combinations with repetition.
int
nNumber of elements in the set.
Random
randomSourceThe random number generator to use. Optional; the default random source will be used if null.
Boolean[]
Boolean mask array of length N
, for each item true if it is selected.
int
nNumber of elements in the set.
int
kNumber of elements to choose from the set. Each element is chosen at most once.
Random
randomSourceThe random number generator to use. Optional; the default random source will be used if null.
Boolean[]
Boolean mask array of length N
, for each item true if it is selected.
int
nNumber of elements in the set.
int
kNumber of elements to choose from the set. Elements can be chosen more than once.
Random
randomSourceThe random number generator to use. Optional; the default random source will be used if null.
Int32[]
Integer mask array of length N
, for each item the number of times it was selected.
int
nNumber of (distinguishable) elements in the set.
Random
randomSourceThe random number generator to use. Optional; the default random source will be used if null.
Int32[]
An array of length N
that contains (in any order) the integers of the interval [0, N)
.
int
nNumber of elements in the set.
int
kNumber of elements to choose from the set. Each element is chosen at most once.
Random
randomSourceThe random number generator to use. Optional; the default random source will be used if null.
Int32[]
An array of length K
that contains the indices of the selections as integers of the interval [0, N)
.
BigInteger
nNumber of elements in the set.
int
kNumber of elements to choose from the set. Each element is chosen at most once.
Random
randomSourceThe random number generator to use. Optional; the default random source will be used if null.
BigInteger[]
An array of length K
that contains the indices of the selections as integers of the interval [0, N)
.
int
nNumber of elements in the set.
int
kNumber of elements to choose from the set. Elements can be chosen more than once.
Random
randomSourceThe random number generator to use. Optional; the default random source will be used if null.
Int32[]
An array of length K
that contains the indices of the selections as integers of the interval [0, N)
.
int
nNumber of (distinguishable) elements in the set.
double
Maximum number of permutations without repetition.
IEnumerable<T>
dataThe data source to choose from.
int
elementsToChooseNumber of elements (k) to choose from the data set. Each element is chosen at most once.
Random
randomSourceThe random number generator to use. Optional; the default random source will be used if null.
IEnumerable<T>
The chosen combination, in the original order.
IEnumerable<T>
dataThe data source to choose from.
int
elementsToChooseNumber of elements (k) to choose from the data set. Elements can be chosen more than once.
Random
randomSourceThe random number generator to use. Optional; the default random source will be used if null.
IEnumerable<T>
The chosen combination with repetition, in the original order.
IEnumerable<T>
dataThe data elements to be reordered.
Random
randomSourceThe random number generator to use. Optional; the default random source will be used if null.
T[]
dataThe data array to be reordered. The array will be modified by this routine.
Random
randomSourceThe random number generator to use. Optional; the default random source will be used if null.
IEnumerable<T>
dataThe data source to choose from.
int
elementsToChooseNumber of elements (k) to choose from the set. Each element is chosen at most once.
Random
randomSourceThe random number generator to use. Optional; the default random source will be used if null.
IEnumerable<T>
The chosen variation, in random order.
IEnumerable<T>
dataThe data source to choose from.
int
elementsToChooseNumber of elements (k) to choose from the data set. Elements can be chosen more than once.
Random
randomSourceThe random number generator to use. Optional; the default random source will be used if null.
IEnumerable<T>
The chosen variation with repetition, in random order.
int
nNumber of elements in the set.
int
kNumber of elements to choose from the set. Each element is chosen at most once.
double
Maximum number of distinct variations.
int
nNumber of elements in the set.
int
kNumber of elements to choose from the set. Each element is chosen 0, 1 or multiple times.
double
Maximum number of distinct variations with repetition.