ang.minus: Angular subtraction

View source: R/ang.minus.R

ang.minusR Documentation

Angular subtraction

Description

ang.minus computes element-wise angular subtraction defined as

x - y := Arg(exp(i(x-y)))

Usage

ang.minus(x, y)

Arguments

x, y

angular data(scalar or vector) whose elements are in [0, 2π)

Value

returns a scalar or a vector whose elements are in [-π, π).

References

Jung, S., Park, K., & Kim, B. (2021). Clustering on the torus by conformal prediction. The Annals of Applied Statistics, 15(4), 1583-1603.

Examples

x <- c(pi/2, 0)
y <- c(pi, pi/3)

ang.minus(x, y)

sungkyujung/ClusTorus documentation built on April 30, 2022, 9:18 p.m.