center of mass - JaneliaSciComp/JRCLUST GitHub Wiki
Center of mass is calculated for each spike or cluster using the following formula:
x_cm = sum(sx_k * a_k^2, k=1..n) / sum(a_k^2, k=1..n)
sx_k: x coordinate value of site ka_k: first principal component value of spike waveform at site kk: site indexsum(b, b=1..10): sum of b from 1 to 10