On 2/14/2007 9:06 PM, Haiyong Xu wrote:
> Hi there,
> 
> I want to integrate a function over an irregular polygon. Is there  
> any function which can implement this easily? Otherwise, I am  
> thinking of divide the polygon into very small rectangles and use  
> "adapt" to approximate it. Do you have any suggestions to get the  
> fine division? Any advice is appreciated.

If you can integrate over a triangle, you will soon be able to use 
gpclib to triangulate the polygon.  (The code was already there in C; I 
wrote an interface to it and Roger Peng has packaged it up to send to 
CRAN.)  Wait for version 1.4 or greater to appear before downloading.

Duncan Murdoch

______________________________________________
R-help@stat.math.ethz.ch 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.

Reply via email to