spatstat (version 1.47-0)

as.linfun: Convert Data to a Function on a Linear Network

Description

Convert some kind of data to an object of class "linfun" representing a function on a linear network.

Usage

as.linfun(X, ...)
"as.linfun"(X, ...)
"as.linfun"(X, ...)

Arguments

X
Some kind of data to be converted.
...
Other arguments passed to methods.

Value

Object of class "linfun".

Details

An object of class "linfun" represents a function defined on a linear network.

The function as.linfun is generic. The method as.linfun.linim converts objects of class "linim" (pixel images on a linear network) to functions on the network. The method as.linfun.lintess converts a tessellation on a linear network into a function identifying which tile contains any given point.

See Also

linfun

Examples

Run this code
   D <- density(runiflpp(4, simplenet), 0.1, verbose=FALSE)

   f <- as.linfun(D)
   f
   
   X <- runiflpp(2, simplenet)
   f(X)

Run the code above in your browser using DataCamp Workspace