dq.point | R Documentation |
This function gives the local quality metric of spatiotemporal data points.
The metric contains two parts of quality information, ie STATIC and DYNAMIC.
The STATIC part comes from the spatial and temporal coverage of each point,
which quantifies the uncertainty of user whereabouts caused by the intrinsic
limitation of measurement method (eg location coverage). The DYNAMIC part
gives the quality from dynamic information like speed, which uses the
Iovan's algorithm as addressed in dq.iovan
.
dq.point(stcoords, pc, po, dq.min = 1e-05, na = dq.min)
stcoords |
the spatiotemporal coordinates, see |
pc |
the point coverage, see |
po |
the occurrence of people, see |
dq.min |
the lower bound of data quality. Values less than this bound will be set by force to this quality (default 1e-5) |
na |
the replacement of NA (default dq.min) |
the original sessions with extra fields: c('dq.s', 'dq.d', 'dq'). 'dq.s' and 'dq.d' give the STATIC and DYNAMIC quality measures respectively, while 'dq' is the Harmonic mean of previous two.
dq.point2
u1 <- movement %>% dplyr::filter(id==1) pc <- point.coverage(movement$lon, movement$lat) po <- people.occurrence(movement$id, movement$lon, movement$lat) stc <- stcoords(u1[,c('lon','lat','time')]) head(dq.point(stc, pc, po)) sessions <- gen.sessions(stc$x, stc$y, stc$t) head(dq.point2(sessions, pc, po))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.