integral.fv | R Documentation |
Compute the integral of a function over a specified range.
## S3 method for class 'fv'
integral(f, domain = NULL, ...)
f |
A function value table
(object of class |
domain |
Optional. Range of values of the argument |
... |
Ignored. |
This is a method for the generic function integral
.
It computes the numerical integral
I = \int f(x) dx
of the function object f
.
If domain
is specified, the integral is restricted to the
interval of x
values given by the domain
.
The result is a numeric value or numeric vector containing one entry
for each column of function values in f
.
Integrals are calculated numerically using the trapezoidal rule restricted to the domain given.
A single numerical value, or a numeric vector.
.
fv.object
, integral
stieltjes
g <- pcf(redwood, divisor="d")
integral(g, domain=c(0, 0.1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.