spatstat (version 1.42-1)

integral.msr: Integral of a Measure

Description

Computes the integral (total value) of a measure over its domain.

Usage

## S3 method for class 'msr':
integral(f, domain=NULL, \dots)

Arguments

f
A signed measure or vector-valued measure (object of class "msr").
domain
Optional window specifying the domain of integration. Alternatively a tessellation.
...
Ignored.

Value

  • A numeric value (for a signed measure) or a vector of values (for a vector-valued measure).

Details

The integral (total value of the measure over its domain) is calculated.

If domain is a window (class "owin") then the integration will be restricted to this window. If domain is a tessellation (class "tess") then the integral of f in each tile of domain will be computed.

See Also

msr, integral

Examples

Run this code
fit <- ppm(cells, ~x)
   rp <- residuals(fit)
   integral(rp)

Run the code above in your browser using DataCamp Workspace