ang.minus | R Documentation |
ang.minus
computes element-wise angular subtraction defined as
x - y := Arg(exp(i(x-y)))
ang.minus(x, y)
x, y |
angular data(scalar or vector) whose elements are in [0, 2π) |
returns a scalar or a vector whose elements are in [-π, π).
Jung, S., Park, K., & Kim, B. (2021). Clustering on the torus by conformal prediction. The Annals of Applied Statistics, 15(4), 1583-1603.
x <- c(pi/2, 0) y <- c(pi, pi/3) ang.minus(x, y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.