ang.pdist {ClusTorus} | R Documentation |
Pairwise L2 angular distance
Description
ang.pdist
computes pairwise angular distances matrix.
Usage
ang.pdist(data)
Arguments
data |
n x d angular data on |
Value
ang.pdist
returns pairwise angular distances matrix
with the class dist
References
Jung, S., Park, K., & Kim, B. (2021). Clustering on the torus by conformal prediction. The Annals of Applied Statistics, 15(4), 1583-1603.
See Also
Examples
data <- matrix(c(pi/3, pi/3, pi/2,
pi, pi/4, pi/2,
0, pi/3, pi/6),
ncol = 3, byrow = TRUE)
ang.pdist(data)
[Package ClusTorus version 0.2.2 Index]