pyriemann.utils.mean.mean_kullback_sym(covmats, sample_weight=None)[source]

Return the mean covariance matrix according to KL divergence.

This mean is the geometric mean between the Arithmetic and the Harmonic mean, as shown in Moakher, Maher, and Philipp G. Batchelor. “Symmetric positive-definite matrices: From geometry to applications and visualization.” In Visualization and Processing of Tensor Fields, pp. 285-298. Springer Berlin Heidelberg, 2006.

  • covmats – Covariance matrices set, Ntrials X Nchannels X Nchannels
  • sample_weight – the weight of each sample

the mean covariance matrix