ang.pdist: Pairwise L2 angular distance

Description Usage Arguments Value References See Also Examples

View source: R/ang.pdist.R

Description

ang.pdist computes pairwise angular distances matrix.

Usage

1

Arguments

data

n x d angular data on [0, 2π)^d

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

ang.dist, dist

Examples

1
2
3
4
5
6
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)

ClusTorus documentation built on Jan. 4, 2022, 5:07 p.m.