Generation of grid points over the multivariate simplex
simplex(d, n=50, a=0, b=1)
Returns a matrix with d=2
, the number of rows is d>2
, the number of rows is equal to
A positive integer indicating the dimension of the simplex.
A positive integer indicating the number of grid points to be generated on the univariate components of the simplex.
Two numeric values indicating the lower and upper bound of the simplex. By default a=0
and b=0
, indicating the unit-simplex.
Simone Padoan, simone.padoan@unibocconi.it, https://faculty.unibocconi.it/simonepadoan/; Boris Beranger, borisberanger@gmail.com https://www.borisberanger.com;
A d=2
and
### 3-dimensional unit simplex
W <- simplex(d=3, n=10)
plot(W[,-3], pch=16)
Run the code above in your browser using DataLab