Calculate circular difference.
getCircDiff(x, y, period = 1, towardZero = TRUE)
| x | Numeric vector or matrix. |
|---|---|
| y | Numeric vector or matrix. |
| period | Period of the periodic variable. |
| towardZero | If |
Vector or matrix corresponding to x - y.