View source: R/functions_utility.R
Stirling2_constraints | R Documentation |
Function to calculate the number of partitions with k groups of sizes between smin and smax
Stirling2_constraints(n, k, smin, smax)
n |
number of nodes |
k |
number of groups |
smin |
minimum group size possible in the partition |
smax |
maximum group size possible in the partition |
a numeric
n <- 6
k <- 2
size_min <- 2
size_max <- 4
Stirling2_constraints(n,k,size_min,size_max)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.