ang.dist {ClusTorus}R Documentation

Angular distance

Description

ang.dist computes element-wise angular distance between two angular values in [0,2π).

Usage

ang.dist(x, y)

Arguments

x, y

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

Value

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

References

S. Jung, K. Park, and B. Kim (2021), "Clustering on the torus by conformal prediction"

Examples

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

ang.dist(x, y)

[Package ClusTorus version 0.1.3 Index]