ang.pdist {ClusTorus} | R Documentation |
ang.pdist
computes pairwise angular distances matrix.
ang.pdist(data)
data |
n x d angular data on |
ang.pdist
returns pairwise angular distances matrix
with the class dist
Jung, S., Park, K., & Kim, B. (2021). Clustering on the torus by conformal prediction. The Annals of Applied Statistics, 15(4), 1583-1603.
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)