powered by
Sample n times from the unit simplex in d dimensions
sample_unit_simplexn(d, n)
The grid over Theta, the parameter space. To be converted to a matrix with d columns and nsamp rows
the dimension
the number of samples to take uniformly in the d space
matrix(sample_unit_simplexn(3, 10), ncol = 3, byrow = TRUE)
Run the code above in your browser using DataLab