fuzzyclust.extensions.make_crossing_lines#

fuzzyclust.extensions.make_crossing_lines(n_lines=3, n_samples_per_line=80, length=8.0, noise=0.1, angles=None, center=(0.0, 0.0), random_state=None)[source]#

Line segments that cross at a common point.

Crossing lines are the classical test case of the fuzzy c-lines algorithm: near the crossing the points of all lines are close to each other, so point and ellipsoid prototypes (FCM, GK) cut the lines into pieces around the crossing, whereas a line prototype measures only the orthogonal distance and assigns each point to the line it lies on.

Parameters:
n_linesint, default=3

Number of lines (ignored when angles is given).

n_samples_per_lineint, default=80
lengthfloat, default=8.0

Length of every segment, centered on the crossing.

noisefloat, default=0.1

Standard deviation of the orthogonal scatter around the lines.

anglessequence of float, optional

Orientation of the lines in degrees; default equally spaced in \([0^\circ, 180^\circ)\).

center(x, y), default=(0, 0)

The crossing point.

random_stateint, RandomState instance or None
Returns:
Xndarray of shape (n_lines * n_samples_per_line, 2)
yndarray of shape (n_lines * n_samples_per_line,)

Examples using fuzzyclust.extensions.make_crossing_lines#

Fuzzy c-varieties: lines as prototypes, and the elliptotype compromise

Fuzzy c-varieties: lines as prototypes, and the elliptotype compromise