spectral_entropy

Contents

spectral_entropy#

class braintools.metric.spectral_entropy(lfp, dt, freq_range=(1, 100))#

Compute spectral entropy of LFP signal as a complexity measure.

Parameters:
  • lfp (Array | ndarray | bool | number | bool | int | float | complex | Quantity) – LFP signal with shape (n_time,).

  • dt (float) – Sampling interval in seconds.

  • freq_range (tuple) – Frequency range for entropy calculation.

Returns:

entropy – Normalized spectral entropy (0 = most regular, 1 = most random).

Return type:

float