powered by
wtd.stat.ang computes weighted extrinsic mean direction and mean resultant length.
wtd.stat.ang
wtd.stat.ang(data, w)
angular data whose elements are in \([0, 2\pi)\)
numeric vector whose each element is non-negative and sum(w) == 1. Moreover, the length of w is the same with nrow(data).
sum(w) == 1
w
nrow(data)
list which is consisting of the following components:
Mean weighted extrinsic mean direction
Mean
R mean resultant length
R
Jung, S., Park, K., & Kim, B. (2021). Clustering on the torus by conformal prediction. The Annals of Applied Statistics, 15(4), 1583-1603.
# 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) w <- c(0.3, 0.3, 0.4) wtd.stat.ang(data, w) # }
Run the code above in your browser using DataLab