Computes a permutation test on phase synchronisation indices.
1 
x1, x2 
Numeric vectors of the same length, interpreted as time series. 
singleSide 
If true only 
method 
How to determine the phase synchronisation index.

M 
Number of bins in the histogram of the cyclic phase difference,
needed to compute the Shannon  entropie based phase
synchronisation index. This is only used if 
R 
Number of replications for random permutation. 
Permutates the values of x1
and x2
R
times and computes
for every replication the phase synchronisation index.
The resulting vector of surrogate phase synchronisation
indices may be used to compute quantiles, that can be used for significance
testing (see example below).
A numeric vector of length R
containing the Phase Synchronisation
indices between both time series for each permutation.
May be computational expernsive
Lukas Gudmundsson
Allefeld, C. & Kurths, J. Testing for phase synchronization. International Journal of Bifurcation and Chaos, 2004, 14, 405416
1 2 3 4 5 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.