Stirling2_constraints function

Function to calculate the number of partitions with k groups of sizes between smin and smax

Function to calculate the number of partitions with k groups of sizes between smin and smax

Stirling2_constraints(n, k, smin, smax)

Arguments

  • n: number of nodes
  • k: number of groups
  • smin: minimum group size possible in the partition
  • smax: maximum group size possible in the partition

Returns

a numeric

Examples

n <- 6 k <- 2 size_min <- 2 size_max <- 4 Stirling2_constraints(n,k,size_min,size_max)
  • Maintainer: Marion Hoffman
  • License: GPL (>= 3)
  • Last published: 2024-05-10

Downloads (last 30 days):