powered by
ang.pdist computes pairwise angular distances matrix.
ang.pdist
ang.pdist(data)
n x d angular data on \([0, 2\pi)^d\)
ang.pdist returns pairwise angular distances matrix with the class dist
dist
Jung, S., Park, K., & Kim, B. (2021). Clustering on the torus by conformal prediction. The Annals of Applied Statistics, 15(4), 1583-1603.
ang.dist, dist
ang.dist
# NOT RUN { 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) # }
Run the code above in your browser using DataLab