spatstat (version 1.42-1)

integral.linim: Integral on a Linear Network

Description

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

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.

Value

  • A numeric value.

Details

The integral (total value of the function over the network) is calculated.

See Also

linim, integral.im

Examples

Run this code
# 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 DataCamp Workspace