polyCub {polyCub} | R Documentation |
Wrapper Function for the Various Cubature Methods
Description
The wrapper function polyCub
can be used to call specific cubature
methods via its method
argument. It calls the polyCub.SV
function by default, which implements general-purpose product Gauss cubature.
The desired cubature function should usually be called directly.
Usage
polyCub(polyregion, f, method = c("SV", "midpoint", "iso", "exact.Gauss"),
..., plot = FALSE)
Arguments
polyregion |
a polygonal domain.
The following classes are supported:
|
f |
a two-dimensional real-valued function to be integrated over
|
method |
choose one of the implemented cubature methods (partial
argument matching is applied), see |
... |
arguments of |
plot |
logical indicating if an illustrative plot of the numerical integration should be produced. |
Value
The approximated integral of f
over polyregion
.
See Also
Details and examples in the vignette("polyCub")
and on the method-specific help pages.
Other polyCub-methods:
polyCub.SV()
,
polyCub.exact.Gauss()
,
polyCub.iso()
,
polyCub.midpoint()