Description Usage Arguments Value Examples
View source: R/SphereKaji20140527.R
Coordinate of simplex vertices
1 |
d |
Number of vertices of a simplex |
d times (d-1) matrix, each row of which is a coordinate of a vertex of (d-1)-simplex, whose center is the origin and distance of whose vertices from the origin is 1
1 2 3 4 5 | d <- 3
cv <- CategoryVector(d)
print(cv)
apply(cv^2,1,sum)
cv %*% t(cv)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.