Learn R Programming

trajectories (version 0.2-1)

avemove: Average movement of trajectory pattern

Description

This returns the average movements of a lits of objects of class "Track" over time.

Usage

avemove(X,timestamp,epsilon=epsilon)

Arguments

X

a list of some objects of class Track

timestamp

timestamp to calculate the pairwise distances between tarcks

epsilon

(optional) movements with length less than epsilon are not considered in the calculation

Value

an object of class "numeric" or "arwlen".

Details

when analysying a list of tracks, avemove calculate the average of movements based on given timestamp.

See Also

as.Track.arrow

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)
}
avemove(X,timestamp = "30 secs")
# }

Run the code above in your browser using DataLab