[R] Vertex enumeration and center of mass for convex polytops
Serguei Kaniovski
Serguei.Kaniovski at wifo.ac.at
Wed Oct 8 08:14:06 CEST 2008
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.
>>
More information about the R-help
mailing list