means#

means(data, groups=None)#

Return per-group means, standard errors, variances, and group IDs.

Statistics use only finite observations. This intentionally fixes EEGLAB’s means helper, which divides standard errors by the full group size even when nonfinite observations were excluded.

Parameters:
  • data (Any)

  • groups (Any | None)

Return type:

tuple[ndarray, ndarray, ndarray, ndarray]