cayleymenger | R Documentation |
Cayley-Menger determinant is a formula of a n
-dimensional simplex
with respect to the squares of all pairwise distances of its vertices.
cayleymenger(data)
data |
an |
a list containing
determinant value.
volume attained from the determinant.
## USE 'IRIS' DATASET
data(iris)
X = as.matrix(iris[,1:4])
## COMPUTE CAYLEY-MENGER DETERMINANT
# since k=4 < n=149, it should be zero.
cayleymenger(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.