Package: polyCub 0.9.4

polyCub: Cubature over Polygonal Domains

Numerical integration of continuously differentiable functions f(x,y) over simple closed polygonal domains. The following cubature methods are implemented: product Gauss cubature (Sommariva and Vianello, 2007, <doi:10.1007/s10543-007-0131-2>), the simple two-dimensional midpoint rule (wrapping 'spatstat.geom' functions), and adaptive cubature for radially symmetric functions via line integrate() along the polygon boundary (Meyer and Held, 2014, <doi:10.1214/14-AOAS743>, Supplement B). For simple integration along the axes, the 'cubature' package is more appropriate.

Authors:Sebastian Meyer [aut, cre, trl], Leonhard Held [ths], Michael Hoehle [ths]

polyCub_0.9.4.tar.gz
polyCub_0.9.4.zip(r-4.7)polyCub_0.9.4.zip(r-4.6)polyCub_0.9.4.zip(r-4.5)
polyCub_0.9.4.tgz(r-4.6-x86_64)polyCub_0.9.4.tgz(r-4.6-arm64)polyCub_0.9.4.tgz(r-4.5-x86_64)polyCub_0.9.4.tgz(r-4.5-arm64)
polyCub_0.9.4.tar.gz(r-4.7-arm64)polyCub_0.9.4.tar.gz(r-4.7-x86_64)polyCub_0.9.4.tar.gz(r-4.6-arm64)polyCub_0.9.4.tar.gz(r-4.6-x86_64)
polyCub_0.9.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
polyCub/json (API)
NEWS

# Install 'polyCub' in R:
install.packages('polyCub', repos = c('https://bastistician.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/bastistician/polycub/issues

On CRAN:

Conda:

numerical-integrationpolygons

7.38 score 10 stars 5 packages 28 scripts 1.6k downloads 18 exports 2 dependencies

Last updated from:de18699f68. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK120
linux-devel-x86_64OK123
source / vignettesOK203
linux-release-arm64OK119
linux-release-x86_64OK118
macos-release-arm64OK132
macos-release-x86_64OK303
macos-oldrel-arm64OK128
macos-oldrel-x86_64OK294
windows-develOK100
windows-releaseOK144
windows-oldrelOK136
wasm-releaseOK85

Exports:.polyCub.isoas.owin.gpc.polyas.owin.Polygonas.owin.Polygonsas.owin.SpatialPolygonscheckintrfrcircleCub.Gausscoercegpc2owinowin2gpcplotpolyfpolyCubpolyCub.exact.GausspolyCub.isopolyCub.midpointpolyCub.SVsfg2gpcxylist

Dependencies:latticesp

Getting started with 'polyCub'

Rendered frompolyCub.Rmdusinglitedown::vignetteon May 24 2026.

Last update: 2026-04-23
Started: 2019-01-24

Readme and manuals

Help Manual

Help pageTopics
Cubature over Polygonal DomainspolyCub-package
Check the Integral of r f_r(r)checkintrfr
Integration of the Isotropic Gaussian Density over Circular DomainscircleCub.Gauss
Conversion between polygonal '"owin"' and '"gpc.poly"'as.owin.gpc.poly coerce-gpc-methods gpc2owin owin2gpc
Coerce '"SpatialPolygons"' to '"owin"'as.owin.Polygon as.owin.Polygons as.owin.SpatialPolygons coerce,Polygon,owin-method coerce,Polygon,Polygons-method coerce,Polygons,owin-method coerce,SpatialPolygons,owin-method coerce-sp-methods
Plot Polygonal Domain on Image of Bivariate Functionplotpolyf
Wrapper Function for the Various Cubature MethodspolyCub
Quasi-Exact Cubature of the Bivariate Normal Density (DEFUNCT)polyCub.exact.Gauss
Cubature of Isotropic Functions over Polygonal Domains.polyCub.iso polyCub.iso
Two-Dimensional Midpoint RulepolyCub.midpoint
Product Gauss Cubature over Polygonal DomainspolyCub.SV
Convert polygonal '"sfg"' to '"gpc.poly"'sfg2gpc
Convert Various Polygon Classes to a Simple List of Verticesxylist xylist.default xylist.gpc.poly xylist.owin xylist.Polygon xylist.Polygons xylist.sfg xylist.SpatialPolygons