# Close endpoints. Different route. Author: Bee Rosa Davis Source: https://www.davisgeometric.com/notebook/what-the-endpoints-missed.html Collection: Bee’s notebook Status: Public post. Published: 2026-12-01 Text edition of the public page, with links, equations, figure descriptions and expanded details. Interactive readouts describe the initial displayed state, not every possible input. Use the linked interactive page and its evidence files for other states. Publication here does not change the source’s research status, assumptions or limitations. --- [← Bee’s notebook](https://www.davisgeometric.com/notebook/) Experiments & connections # Close endpoints. Different route. [Bee Rosa Davis](https://www.davisgeometric.com/about.html) · December 1, 2026 I didn’t need another measurement. I needed to stop comparing the two ends and start reading the route. That sounds obvious until you watch the answer change. Here are two recorded movements of a right hand. Their starts are close. Their finishes are close. Keep only two coordinates and the routes fit inside the same tolerance. Bring back the third coordinate, which was already in the recording, and they don’t. **Try it:** switch from XZ to XYZ below. The recordings stay exactly the same. What changes is what we allow the comparison to see. 01 / A missing coordinate ## What did the flat view leave out? Real hand-position records from UCI’s *Gesture Phase Segmentation* dataset. The comparison runs locally in your browser using GIGI’s Rust kernel. Recordings Coordinates Tolerance Browser computation · recorded reference below ### Recorded reference available below The live controls need JavaScript and WebAssembly. The reference figure, results and source links below do not. The equivalent native GQL query This is the equivalent query for a GIGI server containing the named traces. Here the browser calls the shared comparison kernel directly; it does not send GQL to a server. ``` COMPARE_PATHS hidden_axis TO short ON (rhx, rhz) ALONG timestamp CHART c3_camera_xz UNIT source_coordinate CLOCK_UNIT source_tick TOLERANCE 2 MAX_GAP 100; ``` Coordinates are the dataset’s source units, not a claimed physical calibration. Bounds describe the straight-segment paths formed from the recorded samples, not the unrecorded motion between them. Displayed decimals are rounded; decisions use the full bounds. ## The endpoints passed. The route did not. For the original pair, the larger of the two endpoint distances is about **1.6117** . Our tolerance is 2. If all I keep is the start and finish, both checks pass. In XZ, even the ordered routes fit: the lower and upper bounds on their polyline distance round to **1.4135 and 1.6084** . In XYZ those bounds round to **3.2279 and 3.8102** . The lower bound is already above 2. This is more than finding one bad pairing: no allowed ordered alignment of these observed polylines can stay inside that budget. Look at source rows **655 and 897** in the XYZ witness. Their Y readings are **1.832968 and 5.587366** . That separation was in the file all along. The flat comparison simply wasn’t using it. Those rows explain the upper bound for the alignment the algorithm returned; the separate lower bound is what rules out every alignment under the budget. [[Image: Recorded hand traces in XZ, and the Y coordinate the projection leaves out. The XYZ witness highlights rows 655 and 897.](https://www.davisgeometric.com/notebook/assets/compare-paths/recorded-reference.svg)](https://www.davisgeometric.com/notebook/assets/compare-paths/recorded-reference.svg) **Recorded reference, not a live call.** Original pair: rows 641–671 and 890–903. The marks show the XYZ upper-bound witness. The XZ plot uses different horizontal and vertical scales for visibility; the calculation uses raw source coordinates. Right-hand coordinates from Madeo, Wagner & Peres, UCI, CC BY 4.0. | Case | Coordinates | Polyline lower | Polyline upper | Result | | --- | --- | --- | --- | --- | | Original pair | XZ | 1.41352485 | 1.60835881 | Within tolerance | | Original pair | XYZ | 3.22788626 | 3.81016849 | Different | | Close routes, unequal durations | XYZ | 0.62275471 | 0.62275471 | Within tolerance | | Recorded gap, rows 469–473 | XYZ | — | — | Refused: 40,036 ticks | Decimal endpoints rounded for display; the close-route interval is not zero-width. Full precision and every matched row are in the [reference result file](https://www.davisgeometric.com/notebook/assets/compare-paths/reference-results.json). ## How do you compare two routes fairly? Imagine two people following two marked routes, joined by a leash. They can walk at different speeds or pause. They must follow the points in order, without turning back. How short can the leash be while both complete the trip? That is the idea behind Fréchet distance. Thomas Eiter and Heikki Mannila’s 1994 report gives the discrete calculation and bounds relating it to polygonal curves. I did not invent that distance. GIGI implements it with explicit choices about the coordinates, units, clock gaps and tolerance—and returns the matched rows so you can inspect the answer. The second preset makes the distinction useful: one recording lasts **1,632 clock ticks** , the other **433** , yet their XYZ route distance is about **0.62275** . Similar routes need not have the same duration. This comparison answers a question about shape; it does not say the two movements happened together or at the same speed. Then try the interrupted recording. It has a real jump of **40,036 ticks** , against a permitted maximum of 100. GIGI refuses the comparison. It does not draw an imaginary bridge across that missing stretch and call the resulting route observed. The calculation, one layer down For sampled routes P and Q, the dynamic program accounts for all allowed forward couplings. Here d is Euclidean separation in the selected coordinates. At each pair it keeps the smallest possible worst distance so far: F(i,j) = max(d(Pᵢ,Qⱼ), min(F(i−1,j−1), F(i−1,j), F(i,j−1))). Start with F(0,0) = d(P₀,Q₀); predecessors outside the grid are unavailable. The start and finish must match. Moves advance either route or both; they never reverse a route. The final value is the discrete Fréchet distance D. Let L be the longest sampled segment and E the larger endpoint distance. The continuous Fréchet distance D_(c) between the observed polylines obeys: max(0, E, D − L) ≤ D_(c) ≤ D. The kernel rounds bounds outward in binary64 arithmetic. If the upper bound is at most the tolerance, the answer is “within.” If the lower bound is above it, the answer is “different.” Otherwise, the answer is “unresolved.” Try tolerance 3.5 with the original XYZ pair: unresolved does not mean same. This implementation uses O(mn d) time for m and n samples in d coordinates, and O(mn) memory to retain a witness. This is not a constant-time comparison. Chart names and units are supplied by the caller; the algorithm does not infer a calibration or repair incompatible coordinate systems. ## This is the question I keep coming back to. In [*Reading the Curve, Not Counting the Points*](https://www.davisgeometric.com/notebook/reading-the-curve.html), I asked what the mesh was telling me that the calculation wasn’t reading. Changing the geometric relationships used in reconstruction clarified how to recover curvature. Here I’m asking a related question of a recorded route: what did we throw away before we even began comparing? These are different operators and different results. But that habit—look carefully at what a representation retains—is a through-line in my work. [*Three Ways Across a Turn*](https://www.davisgeometric.com/research/papers/three-ways.html) makes it visible with a chord, an arc and a tangent detour. Those formulas are not this path algorithm. They show why choosing a measurement is already choosing which question you can answer. And in [GIGI’s geometric-inference work](https://www.davisgeometric.com/research/papers/geometric-inference.html), I want a useful bound and a clear account of what remains unresolved. That same standard is here. The answer is not just a number with a confident label. It has a contract, a range and a way back to the source. ## What could we use this for? A researcher comparing recorded motions could ask whether two trajectories stay close throughout their progress, even when one is performed more slowly. An engineer comparing runs could retain an ordered state-space route instead of reducing each run to its endpoint or average. The witness would then say where to look, and an unresolved interval would say when the comparison needs more information. Those are uses to test, not outcomes this camera example has established. We have not built a gesture classifier here, recovered a discarded coordinate, or inferred what happened between samples. We have done something more specific: shown, on unchanged public records, how omitting one available coordinate can reverse a bounded comparison. That is the part I wanted to make visible. The data was there. We had to read the route. ## Sources, credits and reproduction - **Recordings:** Renata Madeo, Priscilla Wagner and Sarajane Peres, [*Gesture Phase Segmentation*, UCI](https://doi.org/10.24432/C5Z32C), under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). This page selects and replots right-hand coordinates from `c3_raw.csv`; it does not change them. Rows are zero-based data rows, excluding the header. [Original archive](https://archive.ics.uci.edu/static/public/302/gesture+phase+segmentation.zip) · [The 100 source records used here](https://www.davisgeometric.com/notebook/assets/compare-paths/compare-paths-presets.json). - **Mathematical method:** Thomas Eiter and Heikki Mannila, [*Computing Discrete Fréchet Distance*](https://www.kr.tuwien.ac.at/staff/eiter/et-archive/files/cdtr9464.pdf), CD-TR 94/64, 25 April 1994. See the polygonal bounds and the dynamic-programming recurrence. - **Research through-line:** Bee Davis, [*Reading the Curve*, v3](https://doi.org/10.5281/zenodo.24386756); [*Three Ways Across a Turn*, v2.1](https://doi.org/10.5281/zenodo.24472196); and [GIGI geometric inference](https://www.davisgeometric.com/research/papers/geometric-inference.html). These links explain the research context, not a new attribution for the Fréchet metric. - **Implementation:** the unchanged comparison kernel from GIGI commit [`4c7df4ed`](https://github.com/nurdymuny/gigi/tree/4c7df4ed6468606c4b4e5c65cbb6dafe45d41788), compiled to WebAssembly. [Rust kernel](https://github.com/nurdymuny/gigi/blob/4c7df4ed6468606c4b4e5c65cbb6dafe45d41788/src/path_compare/math.rs) · [Measurement contract and algorithm](https://github.com/nurdymuny/gigi/blob/4c7df4ed/docs/COMPARE_PATHS_SPEC.md) · [Tests and reproduction instructions](https://github.com/nurdymuny/gigi/blob/4c7df4ed/docs/COMPARE_PATHS_RESULTS.md) · [Code licence](https://www.davisgeometric.com/notebook/assets/compare-paths/gigi-compare-paths-LICENSE.txt). - **Check the example:** [Recorded reference results and witnesses](https://www.davisgeometric.com/notebook/assets/compare-paths/reference-results.json) · [Source hashes and browser/native parity](https://www.davisgeometric.com/notebook/assets/compare-paths/verification.json). The live controls compute a fresh answer locally; this reference file is the separately labelled fallback. The manifest verifies the shipped browser artifact against native results; the browser adapter/build harness is not yet public, so this is not an independently reproducible browser build. No database credentials or private research data are used. Reproduce the native comparison In the pinned GIGI checkout, build the release binary as described in the results file. Run `python e2e/probes/compare_paths_gesture.py --binary PATH_TO_BINARY --archive gesture-phase.zip --output NEW_RESULTS_DIRECTORY`. The probe starts its own local server, downloads and hashes the UCI archive, selects the four windows, submits the native queries and checks an independent oracle. The recorded browser/native parity baseline used the production-feature native binary. That check compares all four registered cases and all 130 witness rows, including the refusal. This tests the implementation; it is not evidence of physical calibration. A different use of the same kernel: [*End is not done*](https://www.davisgeometric.com/notebook/end-is-not-done.html) audits the ordered stage labels in 18 machining logs. There the coordinates are symbols and the criterion is exact discrete agreement, not closeness of a physical path.