powered by
Transforms a cube of distance matrices into a cube of cross-product matrices.
Dist2CP(D3)
the cube of cross-product matrices.
the cube of distance matrices.
# \donttest{ D3 <- array(c(0, 1, 2, 1, 0, 1, 2, 1, 0, 0, 3, 3, 3, 0, 3, 3, 3, 0), dim = c(3, 3, 2)) Dist2CP(D3) # }
Run the code above in your browser using DataLab