Learn R Programming

trajectories (version 0.2-1)

avedistTrack: Average pairwise distance of trajectory pattern over time

Description

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

Usage

avedistTrack(X,timestamp)

Arguments

X

a list of some objects of class "Track"

timestamp

timestamp to calculate the pairwise distances between tarcks

Value

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

Details

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

See Also

as.Track.ppp

Examples

Run this code
# NOT RUN {
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")


# }

Run the code above in your browser using DataLab