Description Usage Arguments Value Examples
View source: R/gen_rand_vpoly.R
This function generates a ddimensional polytope in Vrepresentation with m vertices. We pick m random points from the boundary of the ddimensional unit hypersphere as vertices.
1  gen_rand_vpoly(dimension, nvertices, generator = list(body = "sphere"))

dimension 
The dimension of the convex polytope. 
nvertices 
The number of the vertices. 
generator 
A list that could contain two elements.

A polytope class representing a Vpolytope.
1 2  # generate a 10dimensional polytope defined as the convex hull of 25 random vertices
P = gen_rand_vpoly(10, 25)

Loading required package: Rcpp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.