local2global.example.generate_data¶
- generate_data(n_clusters, scale=1.0, std=0.5, max_size=200, min_size=10, dim=2)[source]¶
Generate test data with normally-distributed clusters centered on sphere.
- Parameters
n_clusters (int) – Number of clusters
scale (float) – Radius of sphere for cluster centers [default: 1.0]
std (float) – Standard deviation for cluster points [default: 0.5]
max_size – maximum cluster size [default: 200]
min_size – minimum cluster size [default: 10]
dim – data dimension [default: 2]