num_permutations
num_permutations(n, k, with_replacement=False)
Function to calculate the number of possible permutations.
Parameters
-
n
:int
Total number of items.
-
k
:int
Number of elements of the target itemset.
-
with_replacement
:bool
Allows repeated elements if True.
Returns
-
permut
:int
Number of possible permutations.
Examples
For usage examples, please see http://rasbt.github.io/mlxtend/user_guide/math/num_permutations/