Testing for phase synchronization Code for Allefeld & Kurths. Testing for phase synchronization. International Journal of Bifurcation and Chaos 14(2), 405–416, 2004.