def cov_tens(T):
  T = np.atleast_2d(T)
  C = np.asarray([band_cov(T[:, i]) for i in range(T.shape[1])])
  return C / T.shape[1] ** 2
Calculate per-frequency covariance.
dataset/ETHPy150Open breuderink/eegtools/eegtools/featex.py/cov_tens