Learn R Programming

trajectories (version 0.2-9)

density.list: Kernel estimate of intensity of trajectory pattern

Description

Estimating the intensity of a list of tracks.

Usage

# S3 method for list
density(x, timestamp,...)

Value

an image of class "im".

Arguments

x

a list of "Track" objects, an object of class "Tracks" or "TracksCollection"

timestamp

based on secs, mins, ...

...

passed to arguments of density.ppp

Author

Mohammad Mehdi Moradi <moradi@uji.es>

Details

This estimate the average intensity function of moving objects over time. Bandwidth selection methods such as bw.diggle, bw.scott and bw.ppl can be passed to this density.list.

See Also

rTrack, density.ppp

Examples

Run this code
if (require(spatstat.explore)) {
 X <- list()
 for(i in 1:10){
  m <- matrix(c(0,10,0,10),nrow=2,byrow = TRUE)
  X[[i]] <- rTrack(bbox = m,transform = TRUE)
 }
 density(X, timestamp = "180 secs")
}

Run the code above in your browser using DataLab