Stirling2_constraints: Function to calculate the number of partitions with k groups...

View source: R/functions_utility.R

Stirling2_constraintsR Documentation

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

Description

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

Usage

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

Value

a numeric

Examples

n <- 6
k <- 2
size_min <- 2
size_max <- 4
Stirling2_constraints(n,k,size_min,size_max)


ERPM documentation built on May 29, 2024, 10:05 a.m.