squareDisp-methods: squareDisp

Description Usage Arguments Value Examples

Description

calculate square displacement of a track/trajectory as a function of time/step. data.frame has two column, x and y also calculate dx, dy bivariate squareDispCpp is the cpp version of squareDisp

Usage

1
2
squareDisp(track,dt=1,resolution=0.107)
squareDispCpp(track,dt=1,resolution=0.107)

Arguments

track

track dataframe with x and y coordinates.

dt

time step size(in frames).

resolution

resolution value, default is 0.107.

Value

Examples

1
2
3
4
5
6
folder1=system.file('extdata','SWR1',package='sojourner')
folder2=system.file('extdata','HTZ1',package='sojourner')
trackll=compareFolder(folders=c(folder1,folder2), input=3)
#use default filter with min=7
filtered.trackll=filterTrack(trackll)
track.dt=squareDisp(filtered.trackll[[1]][[1]],dt=6)

sheng-liu/sojourner documentation built on April 2, 2021, 2:30 a.m.