pyriemann.utils.tangentspace.tangent_space

pyriemann.utils.tangentspace.tangent_space(covmats, Cref)[source]

Project a set of covariance matrices in the tangent space according to the given reference point Cref

Parameters:
  • covmats – Covariance matrices set, Ntrials X Nchannels X Nchannels
  • Cref – The reference covariance matrix
Returns:

the Tangent space , a matrix of Ntrials X (Nchannels*(Nchannels+1)/2)