ContextLab / supereeg

Infer activity throughout the brain from a small(ish) number of electrodes using Gaussian process regression
Other
33 stars 14 forks source link

distance metrics for averaging correlation matrices #47

Open andrewheusser opened 7 years ago

andrewheusser commented 7 years ago

Our current implementation computed subject-wise correlation matrices, fisher's r2zs them, computes the euclidean mean and then inverts the fisher's r2z (i.e. z2r)

We could explore other distance functions such as log-euclidean and riemannian. The logic being that SPD matrices live on a curved manifold, so euclidean averaging might be sub-optimal.

This figure gives a good intuition for why a non-euclidean distance metric might be better:

image

andrewheusser commented 7 years ago

here's a link to a python implementation of riemannian distance: https://pythonhosted.org/pyriemann/generated/pyriemann.utils.distance.distance_riemann.html#pyriemann.utils.distance.distance_riemann