R/sample-trees-fast.R
sample_unique_perms.RdSample unique permutations from a partition space
sample_unique_perms(g, n, B)
| g | number of generations |
|---|---|
| n | total size of cluster |
| B | number of permutations to draw |
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