Sample unique permutations from a partition space

sample_unique_perms(g, n, B)

Arguments

g

number of generations

n

total size of cluster

B

number of permutations to draw

Value

matrix of size g x B and the first row is all 1. Each column is a unique permutation that sums to n and all are positive entries