| integral.linim {spatstat} | R Documentation |
Computes the integral (total value) of a function or pixel image over a linear network.
## S3 method for class 'linim' integral(f, domain=NULL, ...) ## S3 method for class 'linfun' integral(f, domain=NULL, ..., delta)
f |
A pixel image on a linear network (class |
domain |
Optional window specifying the domain of integration. |
... |
Ignored. |
delta |
Optional. The step length (in coordinate units) for computing the approximate integral. A single positive number. |
The integral (total value of the function over the network) is calculated.
A numeric value.
Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner r.turner@auckland.ac.nz and Ege Rubak rubak@math.aau.dk.
# make some data
xcoord <- linfun(function(x,y,seg,tp) { x }, simplenet)
integral(xcoord)
X <- as.linim(xcoord)
integral(X)