Rs <- ruars(20, rvmises, kappa = 0.01)
# Projected mean
mean(Rs)
# Same as mean(Rs)
project.SO3(colMeans(Rs))
# Geometric mean
mean(Rs, type = "geometric")
# Bias of the projected mean
rot.dist(mean(Rs))
# Bias of the geometric mean
rot.dist(mean(Rs, type = "geometric"))
# Same thing with quaternion form
Qs <- as.Q4(Rs)
mean(Qs)
mean(Qs, type = "geometric")
rot.dist(mean(Qs))
rot.dist(mean(Qs, type = "geometric"))
Run the code above in your browser using DataLab