dq.traj: Spatiotemporal data quality of user trajectory

View source: R/data_quality.R

dq.trajR Documentation

Spatiotemporal data quality of user trajectory

Description

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.

Usage

dq.traj(stcoords, pc, po)

Arguments

stcoords

the spatiotemporal coordinates, see stcoords

pc

the point coverage, see point.coverage

po

the occurrence of people, see people.occurrence

Value

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

See Also

dq.traj2

Examples

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))

caesar0301/movr documentation built on June 18, 2022, 2:37 a.m.