powered by
This function generate locations for any number of clusters in any dimensions.
gen_clustloc(p = 4, k = 3)
A matrix of the locations.
A numeric value (default: 4) representing the number of dimensions.
A numeric value (default: 3) representing the number of clusters.
set.seed(20240412) gen_clustloc(p = 4, k = 3)
Run the code above in your browser using DataLab