fuzzyclust.graph.make_chained_blobs#
- fuzzyclust.graph.make_chained_blobs(n_samples_per_blob=120, n_chain=25, spread=0.5, distance=7.0, chain_noise=0.08, random_state=None)[source]#
Two Gaussian blobs connected by a sparse chain of points (the chaining effect).
Single-linkage and plain MST cutting see one cluster, because every consecutive pair along the chain is close. The volume-based splitting of
MSTClusteringseparates the blobs (and the chain) because the union has a much larger fuzzy hypervolume than its parts.- Parameters:
- n_samples_per_blob
int, default=120 - n_chain
int, default=25 Number of chain points between the blobs.
- spread
float, default=0.5 Standard deviation of the blobs.
- distance
float, default=7.0 Distance between the blob centers.
- chain_noise
float, default=0.08 Standard deviation of the chain points around the straight line.
- random_state
int,RandomStateinstanceorNone
- n_samples_per_blob
- Returns:
Examples using fuzzyclust.graph.make_chained_blobs#
Minimal spanning tree clustering: cutting, splitting, and Gath–Geva refinement
Minimal spanning tree clustering: cutting, splitting, and Gath–Geva refinement