Serguei Kaniovski
2008-Oct-01 12:00 UTC
[R] Vertex enumeration and center of mass for convex polytops
Dear All! I am looking for a package that contains routines for vertex enumeration and center of mass computation for convex polytops. Thanks in advance, Serguei Kaniovski
Serguei Kaniovski
2008-Oct-08 06:14 UTC
[R] Vertex enumeration and center of mass for convex polytops
Hi Mosche, In my problem the polytope is defined not by its vertices, but by a set of linear equations and inequalities. Serguei Moshe Olshansky schrieb:> Hi, > > If you know that all your points represent vertices of a convex polygon you do not need any special package. > The center of mass is just the mean of the coordinates. > To enumerate the vertices, compute the vectors from the center of mass to all the vertices. Using atan2 function compute the arguments of all these vectors (between 0 and 2*pi) and number the points according to their argument. > > > --- On Wed, 1/10/08, Serguei Kaniovski <Serguei.Kaniovski at wifo.ac.at> wrote: > > >> From: Serguei Kaniovski <Serguei.Kaniovski at wifo.ac.at> >> Subject: [R] Vertex enumeration and center of mass for convex polytops >> To: r-help at stat.math.ethz.ch >> Received: Wednesday, 1 October, 2008, 10:00 PM >> Dear All! >> >> I am looking for a package that contains routines for >> vertex enumeration >> and center of mass computation for convex polytops. >> >> Thanks in advance, >> Serguei Kaniovski >> >> ______________________________________________ >> R-help at r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, >> reproducible code. >>