Variants of the Fréchet distance

Besides the continuous Fréchet distance, the package computes these related distances between curves.

  • The discrete Fréchet distance (frechet_d_compute): of the two vertex sequences, by dynamic programming; its retractable version (frechet_d_r_compute) minimizes the leash at every moment, not only the largest one; and frechet_d_r_compute_sample approximates the continuous distance by sampling the curves. See Discrete Fréchet distance.
  • The VE-retractable Fréchet distance (frechet_ve_r_compute, FEVER_compute): only vertex–edge events, with a walk that may move backwards and minimizes the leash at every moment. A lower bound on the Fréchet distance; monotonizing its morphing gives an upper bound. See VE-retractable Fréchet distance.
  • Dynamic time warping (DTW_d_compute): the minimum, over discrete couplings, of the sum of the leash lengths. See Discrete Fréchet distance and dynamic time warping.
  • The sweep distance (continuous dynamic time warping, SweepDist_compute): the smallest integral of the leash length over a morphing. See Sweep distance.