powered by
This function is used to randomly generate a partition matrix and assign rows or columns to prototypes. Must be the case that N > K.
partition_gen(N, K)
Number of objects/rows in a partition matrix
Desired number of partitions
A partition matrix.