kmeanscluster#

kmeanscluster(data, clusters=1, randomized=False, *, random_state=0)#

Cluster row-wise observations using EEGLAB’s simple k-means contract.

Returns zero-based labels, centroids, the converged previous-label vector, and an unchanged copy of the input observations. Deterministic mode initializes from the first clusters rows, as EEGLAB does, and keeps that centroid-row numbering.

Parameters:
Return type:

tuple[ndarray, ndarray, ndarray, ndarray]