Cluster sizes are determined using the normal distribution
(\(\mu=\) num_points
\(/\) num_clusters
,
\(\sigma=\mu/3\)), and then assuring that the final cluster sizes
add up to num_points
via the fix_num_points function.
Arguments
- num_clusters
Number of clusters.
- num_points
Total number of points.
- allow_empty
Allow empty clusters?
Note
This function is stochastic. For reproducibility set a PRNG seed with set.seed.