integral.linim
From spatstat v1.49-0
by Adrian Baddeley
Integral on a Linear Network
Computes the integral (total value) of a function or pixel image over a linear network.
Usage
# S3 method for linim
integral(f, domain=NULL, ...)# S3 method for linfun
integral(f, domain=NULL, ...)
Arguments
- f
A pixel image on a linear network (class
"linim"
) or a function on a linear network (class"linfun"
).- domain
Optional window specifying the domain of integration.
- …
Ignored.
Details
The integral (total value of the function over the network) is calculated.
Value
A numeric value.
See Also
Examples
# NOT RUN {
# make some data
xcoord <- linfun(function(x,y,seg,tp) { x }, simplenet)
integral(xcoord)
X <- as.linim(xcoord)
integral(X)
# }
Community examples
Looks like there are no examples yet.