I have a question regarding how to calculate synchronization in two coupled rossler systems?

say x1 and x2 represent two variables of coupled system.The time series contains 5000 data points each.

is the formalue cpr=phasesynchro(x1,x2,m,t,e) correct for such calculations. however if i change the coupling parameters then also the value of cpr comes close to one[/.Do

we need to specify a window if so how?Also how to plot the p(tau) vs tau individually?

P.S-I am novice in this field pardon me if the question is irrelevant.