Learn R Programming

iccTraj (version 1.0.4)

genHD: Generates a data frame with the pairwise distances between trajectories

Description

Generates a data frame with the pairwise distances between trajectories

Usage

genHD(data_list, parallel = TRUE, distance = c("H", "F"), q = 0.5)

Value

A data frame with the subjects and trips identifiers and their distances

Arguments

data_list

A list created with "tr_gen" function

parallel

TRUE/FALSE value. Use parallel computation? Default value is TRUE.

distance

Metric used to compute the distances between trajectories. Options are **H** for median Hausforff distance, and **F** for discrete Fréchet distance.

q

Quantile for the extended Hausdorff distance. Default value q=0.5 leads to median Hausdorff distance.