Fréchet distance

From WikiMD's Wellness Encyclopedia

free-space-diagram

Fréchet distance is a measure of similarity between curves that takes into account the location and ordering of the points along the curves. It is often described as the distance a dog and its owner would accumulate if they were walking along their separate paths (each represented by a curve) without backtracking, where the dog is allowed to control the speed it walks but is constrained by the length of the leash. This analogy highlights the essence of the Fréchet distance: it is the minimum length of a leash required so that both the dog and the owner can traverse their respective paths from start to finish, possibly at varying speeds but without backtracking.

Definition[edit | edit source]

Formally, the Fréchet distance between two curves is defined using the concept of reparameterizations. A reparameterization is a continuous, non-decreasing, surjective function from the unit interval [0,1] to itself. Given two curves represented by continuous functions \(A: [0,1] \rightarrow \mathbb{R}^n\) and \(B: [0,1] \rightarrow \mathbb{R}^n\), the Fréchet distance is the infimum over all reparameterizations \(\alpha\) and \(\beta\) of the maximum distance at corresponding points: \[d_F(A,B) = \inf_{\alpha,\beta} \max_{t \in [0,1]} \|A(\alpha(t)) - B(\beta(t))\|.\]

Applications[edit | edit source]

The Fréchet distance has applications in various fields such as computational geometry, computer graphics, and trajectory analysis. In computational geometry, it is used to compare geometric shapes. In computer graphics, it can be applied to compare and morph shapes. In trajectory analysis, it is useful for comparing the paths of moving objects, such as animals during migration or vehicles in traffic.

Computation[edit | edit source]

Computing the Fréchet distance is a challenging problem, especially for curves in higher dimensions. For polygonal curves, where the curves are piecewise linear, there exists an algorithm that computes the Fréchet distance in \(O(nm \log(nm))\) time, where \(n\) and \(m\) are the numbers of vertices on each curve. This algorithm relies on dynamic programming and the concept of free space diagrams.

Variants[edit | edit source]

Several variants of the Fréchet distance have been developed to address specific needs. The discrete Fréchet distance is a simplification that considers only the vertices of polygonal curves, making it easier to compute. The weak Fréchet distance relaxes the requirement for the paths to be traversed from start to finish, allowing for more flexibility in applications where such strict adherence to the paths' ordering is not necessary.

See Also[edit | edit source]

WikiMD
Navigation: Wellness - Encyclopedia - Health topics - Disease Index‏‎ - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes

Search WikiMD

Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD

WikiMD's Wellness Encyclopedia

Let Food Be Thy Medicine
Medicine Thy Food - Hippocrates

Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.

Contributors: Prab R. Tumpati, MD