Skip to contents

Pairwise integrated trajectory distance matrix

Usage

pairwise_trajectory_distance(all_coeffs_x, all_coeffs_y)

Arguments

all_coeffs_x

List of X coefficient vectors

all_coeffs_y

List of Y coefficient vectors

Examples

cx <- list(c(0, 1), c(3, 1), c(0, 1))
cy <- list(c(0, 2), c(4, 2), c(0, 2))
pairwise_trajectory_distance(cx, cy)  # 3 x 3; curves 1 and 3 coincide
#>      [,1] [,2] [,3]
#> [1,]    0    5    0
#> [2,]    5    0    5
#> [3,]    0    5    0