checkintrfr {polyCub} | R Documentation |
Check the Integral of r f_r(r)
Description
This function is auxiliary to polyCub.iso
.
The (analytical) integral of r f_r(r)
from 0 to R
is checked
against a numeric approximation using integrate
for various
values of the upper bound R
. A warning is issued if inconsistencies
are found.
Usage
checkintrfr(intrfr, f, ..., center, control = list(), rs = numeric(0L),
tolerance = control$rel.tol)
Arguments
intrfr |
a |
f |
a two-dimensional real-valued function. As its first argument it must take a coordinate matrix, i.e., a numeric matrix with two columns, and it must return a numeric vector of length the number of coordinates. |
... |
further arguments for |
center |
numeric vector of length 2, the center of isotropy. |
control |
list of arguments passed to |
rs |
numeric vector of upper bounds for which to check the validity of
|
tolerance |
of |
Value
The intrfr
function. If it was not supplied, its quadrature
version using integrate
is returned.