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 [0, 2π)^d

Value

ang.pdist returns pairwise angular distances matrix with the class dist

References

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

See Also

ang.dist

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.1.3 Index]