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)

snjy9182/smt-beta documentation built on April 4, 2021, 6:26 a.m.