runif_unitSimplex: Uniform sampling on/in a unit simplex

Description Usage Arguments Value See Also Examples

Description

Uniform sampling on or in a unit simplex (arbitrary dimension).

Usage

1
2
3

Arguments

n

number of simulations

d

dimension of the space

Value

The simulations in a n times d matrix.

See Also

runif_in_tetrahedron for sampling in an arbitrary tetrahedron in dimension 3; runif_in_simplex for sampling in an arbitrary simplex.

Examples

1
2
3
library(rgl)
sims <- runif_on_unitSimplex(300, d=3)
points3d(sims)

stla/uniformly documentation built on Aug. 10, 2018, 7:03 a.m.