dq.iovan: Spatiotemporal data quality of Iovan's

View source: R/data_quality.R

dq.iovanR Documentation

Spatiotemporal data quality of Iovan's

Description

In this data quality measure, Iovan et al.[1] addressed mobility data quality from both local and global aspects. The local measure quantifies the quality of each data point, which encodes the reasonableness of data mainly with regards to SPEED (or time and distance). The global measure based on informational entropy quantifies the data quality within a whole trajectory. This function implements these measures, which are also referred to as the DYNAMIC quality for mobility data.

Usage

dq.iovan(stcoords, type = "lonlat")

Arguments

type

the selection of distance calculation function: 'lonlat' -> great circle distance of long/lat pair, 'xy' -> euclidean distance.

x, y, t

as like the input of stcoords. The spatial coordinates (x, y) should be (long, lat) pair in the geographic coordinate, or quantities in Euclidean coordinate. If (x, y) represents (long, lat) pair, the first element must be longitude.

Value

a list of data quality indicators:

theta the speed index

Q the unified quality indicator for each data point

H the entropic quality indicator for each mobility trajectory

References

[1] https://doi.org/10.1007/978-3-319-00615-4_14

Examples

u1 <- movement %>% dplyr::filter(id==1)
stc <- stcoords(u1[, c('lon','lat','time')])
dq.iovan(stc, type='lonlat')

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