Stirling2_constraints {ERPM}R 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)


[Package ERPM version 0.2.0 Index]