numdim#

numdim(data)#

Estimate a lower bound on the number of discrete sources in the data.

Ports EEGLAB’s numdim (Wackermann’s measure): the effective dimensionality is the exponential of the Shannon entropy of the normalized eigenvalue spectrum of the channel second-order matrix data @ data.T / 100. The measure is invariant to overall scaling of the data.

Parameters:

data (Any) – 2-D array shaped (channels, samples).

Returns:

The estimated effective number of sources, a real scalar.

Return type:

float