Description Usage Arguments Details Value Examples
Defines an equal area/volume subdivision of the unit simplex and the canonical simplex in R^n. The unit simplex is the (n-1) dimensional simplex with vertices (1,0,0,...,0), (0,1,0,...,0), ...,(0,0,0,...,1), i.e. all x >= 0 with sum(x)==1.
The solid simplex is the n dimensional simplex with vertices (1,0,0,...,0), (0,1,0,...,0), ...,(0,0,0,...,1), and (0,0,...,0), i.e. all x >= 0 with sum(x) <= 1.
1 2 | UnitSimplex(n, k )
SolidSimplex( n, k )
|
n |
dimension of the space |
k |
number of subdivisions |
EdgeSubdivision
is called to
do a k-subdivision of each edge, and then that output is converted to a matrix of vertices.
an object of class "mvmesh" as described in mvmesh
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | UnitSimplex( n=2, k=3 )
SolidSimplex( n=2, k=3 )
UnitSimplex( n=3, k=2 )
SolidSimplex( n=3, k=2 )
UnitSimplex( n=5, k=4 )
SolidSimplex( n=5, k=4 )
## Not run:
plot( UnitSimplex( n=2, k=3 ) )
plot( SolidSimplex( n=2, k=3 ) )
plot( UnitSimplex( n=3, k=2 ) )
plot( SolidSimplex( n=3, k=2 ) )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.