Description Usage Arguments Value Examples
phase_diff_mean_c
calcultes the phase difference between two x coordinates with a mean centred threshold.
Values more than 180 degrees ahead of the mean will be treated as lags, values less than 180 degrees behind mean
will be treated as leading
1 | phase_diff_mean_c(x1, x2, lowlim = 0, highlim = 360)
|
x1, x2 |
x coordinates to calculate phase difference between |
lowlim, highlim |
maximum and minimum expected x values. Defaults apply to degrees in a circle |
Returns a vector of values (between -1 and 1) indicating the phase difference between two x coordinates
1 2 3 4 | x1 <- seq(0, 360, 360/4)
x2 <- 180
phase_diff(x1, x2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.