genHD {iccTraj}R Documentation

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,
  future_seed = 123
)

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.

future_seed

Logical/Integer. The seed to be used for parallellization. Further details in furrr_options.

Value

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


[Package iccTraj version 1.1.0 Index]