integral.linim

0th

Percentile

Integral on a Linear Network

Computes the integral (total value) of a function or pixel image over a linear network.

Keywords
spatial, math
Usage
## S3 method for class 'linim':
integral(f, domain=NULL, ...)

## S3 method for class '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

linim, integral.im

Aliases
  • integral.linim
  • integral.linfun
Examples
# make some data
  xcoord <- linfun(function(x,y,seg,tp) { x }, simplenet)
  integral(xcoord)
  X <- as.linim(xcoord)
  integral(X)
Documentation reproduced from package spatstat, version 1.42-2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.