dq.traj | R Documentation |
This function calculates the data quality of a user's trajectory. The measure is quantifies with heterogeneity of spatiotemporal data points, as obtained via a grid-based optimal searching algorithm.
dq.traj(stcoords, pc, po)
stcoords |
the spatiotemporal coordinates, see |
pc |
the point coverage, see |
po |
the occurrence of people, see |
a data.frame of data qualities for each user.
N the number of data points in a trajectory
dq the data quality of a given trajectory
mean the average data quality of stay points
entropy the informative entropy of point data qualities
dq.traj2
u1 <- movement %>% dplyr::filter(id==4) pc <- point.coverage(movement$lon, movement$lat) po <- people.occurrence(movement$id, movement$lon, movement$lat) stc <- stcoords(u1[,c('lon','lat','time')]) dq.traj(stc, pc, po) dq.traj2(dq.point(stc, pc, po))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.