trackColl | R Documentation |
Track collective events
trackColl(obj, eps = 1, minClSz = 1L, nPrev = 1L, epsPrev = NULL, deb = FALSE)
## S3 method for class 'arcosTS'
trackColl(obj, eps = 1, minClSz = 1L, nPrev = 1L, epsPrev = NULL, deb = FALSE)
obj |
an arcosTS object. |
eps |
a numeric, sets the search radius for spatial clustering with dbscan; default 1. |
minClSz |
an integer, minimum cluster size for dbscan; default 1L. |
nPrev |
an integer, number of previous frames to link; default 1L. |
epsPrev |
a float with the search radius for linking clusters between frames, default NULL means that epsPrev = eps. |
deb |
boolean, additional debug output; default FALSE. |
Wrapper for the trackCollEvents
function.
an arcosTS object
library(ARCOS)
library(data.table)
ts = data.table(frame = c(1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5),
objid = c(1, 2, 1, 2, 3, 1, 2, 3, 4, 1, 2, 4, 1, 4),
x = c(1, 3, 1.2, 2.5, 3.5, 0.9, 2.6, 2.9, 3.2, 1.1, 2.8, 3.1, 1, 3))
arcosTS(ts,
colPos = "x",
col = list(Frame = "frame",
IDobj = "objid",
RT = NULL,
IDcoll = NULL),
interVal = 1.,
interType = "fixed")
tc = trackColl(ts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.