avedistTrack | R Documentation |
This measures the average of pairwise distances between tracks over time.
avedistTrack(X,timestamp)
X |
a list of some objects of class "Track" |
timestamp |
timestamp to calculate the pairwise distances between tarcks |
This function calculates the average pairwise distance between a list of tracks according to a given timestamp.
An object of class "distrack". It can be plotted over time.
Mohammad Mehdi Moradi <moradi@uji.es>
as.Track.ppp
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)
}
ave <- avedistTrack(X,timestamp = "120 secs")
plot(ave,type="l")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.