phase_diff_mean_c: phase_diff_mean_c

Description Usage Arguments Value Examples

Description

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

Usage

1
phase_diff_mean_c(x1, x2, lowlim = 0, highlim = 360)

Arguments

x1, x2

x coordinates to calculate phase difference between

lowlim, highlim

maximum and minimum expected x values. Defaults apply to degrees in a circle

Value

Returns a vector of values (between -1 and 1) indicating the phase difference between two x coordinates

Examples

1
2
3
4
x1 <- seq(0, 360, 360/4)
x2 <- 180

phase_diff(x1, x2)

abeith/eyeCleanR documentation built on June 1, 2019, 12:43 a.m.