avemove: Average movement of trajectory pattern

View source: R/Trackstat.R

avemoveR Documentation

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

Details

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

Value

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

Author(s)

Mohammad Mehdi Moradi <moradi@uji.es>

See Also

as.Track.arrow

Examples

if (require(spatstat.geom)) {
 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")
}

trajectories documentation built on Nov. 28, 2023, 1:10 a.m.