gen_simplex | R Documentation |
This function generates the d
-dimensional unit simplex in H- or V-representation.
gen_simplex(dimension, representation = "H")
dimension |
The dimension of the unit simplex. |
representation |
A string to declare the representation. It has to be |
A polytope class representing the d
-dimensional unit simplex in H- or V-representation.
# generate a 10-dimensional simplex in H-representation
PolyList = gen_simplex(10, 'H')
# generate a 20-dimensional simplex in V-representation
P = gen_simplex(20, 'V')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.