Permutation test for phase synchronisation indices
Description
Computes a permutation test on phase synchronisation indices.
Usage
1 
Arguments
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. 
Details
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).
Value
A numeric vector of length R
containing the Phase Synchronisation
indices between both time series for each permutation.
Warning
May be computational expernsive
Author(s)
Lukas Gudmundsson
References
Allefeld, C. & Kurths, J. Testing for phase synchronization. International Journal of Bifurcation and Chaos, 2004, 14, 405416
See Also
phaSyn
Examples
1 2 3 4 5 