avedistTrack: Average pairwise distance of trajectory pattern over time

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/Trackstat.R

Description

This measures the average of pairwise distances between tracks over time.

Usage

1

Arguments

X

a list of some objects of class "Track"

timestamp

timestamp to calculate the pairwise distances between tarcks

Details

This function calculates the average pairwise distance between a list of tracks according to a given timestamp.

Value

An object of class "distrack". It can be plotted over time.

Author(s)

Mohammad Mehdi Moradi <moradi@uji.es>

See Also

as.Track.ppp

Examples

1
2
3
4
5
6
7
8
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)
}

ave <- avedistTrack(X,timestamp = "120 secs")
plot(ave,type="l")

trajectories documentation built on March 16, 2021, 5:09 p.m.