powered by
Computes the integral (total value) of a function or pixel image over a linear network.
# S3 method for linim integral(f, domain=NULL, ...)# S3 method for linfun integral(f, domain=NULL, ..., delta)
# S3 method for linfun integral(f, domain=NULL, ..., delta)
A pixel image on a linear network (class "linim") or a function on a linear network (class "linfun").
"linim"
"linfun"
Optional window specifying the domain of integration.
Ignored.
Optional. The step length (in coordinate units) for computing the approximate integral. A single positive number.
A numeric value.
The integral (total value of the function over the network) is calculated.
linim, integral.im
linim
integral.im
# NOT RUN { # make some data xcoord <- linfun(function(x,y,seg,tp) { x }, simplenet) integral(xcoord) X <- as.linim(xcoord) integral(X) # }
Run the code above in your browser using DataLab