fuzzyclust.graph.make_density_blobs#

fuzzyclust.graph.make_density_blobs(sizes=(200, 40, 40), spreads=(1.2, 0.25, 0.25), centers=((0.0, 0.0), (5.0, 0.9), (5.0, -0.9)), random_state=None)[source]#

A diffuse cluster next to two tight ones (very different densities).

The longest MST edges inside the diffuse group are as long as the edge that separates the two tight groups from each other, so a global length threshold (Zahn’s Criterion 1) either leaves the tight groups merged or cuts the tails off the diffuse one; the local inconsistency criterion (Criterion 2) compares each edge with its neighborhood and finds the three groups.

Parameters:
sizestuple of int, default=(200, 40, 40)
spreadstuple of float, default=(1.2, 0.25, 0.25)

Standard deviations of the groups.

centerstuple of pairs, default=((0, 0), (5, 0.9), (5, -0.9))
random_stateint, RandomState instance or None
Returns:
Xndarray of shape (sum(sizes), 2)
yndarray

Examples using fuzzyclust.graph.make_density_blobs#

Inconsistent edges: Zahn’s criteria and the neighborhood depth

Inconsistent edges: Zahn's criteria and the neighborhood depth