Kuramoto order parameter (source code)

= Kuramoto order parameter
{c}
{title2=$re^{i\psi}=N^{-1}\sum_j e^{i\theta_j}$}

The complex centroid of the oscillators' unit phase vectors has magnitude $r$ and argument $\psi$. A magnitude near one indicates phase coherence; zero indicates a balanced phase distribution, which need not be uniquely uniform at finite population size. Taking the imaginary part after multiplication by $e^{-i\theta_i}$ rewrites all-to-all sine coupling exactly in terms of these two collective variables.