The repository

Every file of the repository outside src/ (the package itself), by directory. The examples are described in Examples, and the benchmark scripts in Reproducing the benchmarks. tools/docs_coverage.rb, part of the gate, checks that every file is named in this manual. Ignored by git: output/ (results of the examples and benchmarks), data/ and raw/ (downloaded programs and data), example_higher/data/ and example_higher/output/, archive/ (old files kept locally), docs/build/, and the Manifest.toml files of the package and the examples.

Top level

FileContents
Project.tomlThe package: name, version, dependencies, compat bounds
README.mdOverview, installation, the main functions
LICENSEThe MIT license
AGENTS.mdInstructions for coding agents working on the repository
.gitignoreWhat git ignores (above)
.JuliaFormatter.tomlThe formatting style (JuliaFormatter, always_for_in)
.git-blame-ignore-revsFormatting-only commits, for git blame
.github/workflows/CI.ymlTests on GitHub Actions, and the documentation build
.github/workflows/CompatHelper.ymlPull requests for new versions of the dependencies
.github/workflows/TagBot.ymlTags a release once General registers it
.github/dependabot.ymlUpdates of the GitHub actions used

docs/

FileContents
docs/make.jlBuilds this manual with Documenter (julia --project=docs docs/make.jl)
docs/Project.toml, docs/Manifest.tomlThe environment of the manual
docs/review-2026-11.mdThe code review of November 2026: the defects found and their fixes
docs/src/index.mdThe front page: overview, point types, the main functions
docs/src/installation.md, docs/src/quickstart.mdInstalling, and a first example
docs/src/algorithms.mdThe implemented algorithms, by function
docs/src/continuous.mdThe ways to compute the continuous Fréchet distance, and which to use
docs/src/dimensions.mdCurves in any dimension: the point types
docs/src/variants.mdThe variants of the Fréchet distance, with links to their pages
docs/src/performance.mdThe comparisons with the other implementations, in short, with links to them
docs/src/decide.md, docs/src/exact.mdThe decision procedure, the bisection, and the exact distance, with their benchmarks
docs/src/frechet_discrete.md, docs/src/sweep.mdThe discrete Fréchet distance and dynamic time warping; the sweep distance
docs/src/simplification.md, docs/src/morphing.mdSimplification; morphings
docs/src/high_dimensional.md, docs/src/hilbert.mdHigh-dimensional curves against Fred; curves in Hilbert spaces
docs/src/cg.md, docs/src/low_level.mdGeometric helpers; the lower-level functions
docs/src/examples.md, docs/src/reproduce.md, docs/src/repository.mdThe examples; reproducing the benchmarks; this page
docs/src/changelog.mdThe changes, by version

test/

The test suite (julia --project -e 'using Pkg; Pkg.test()', or tools/test).

FileContents
test/runtests.jlRuns every test file; each is a module that runs alone and seeds its random generators
test/oracle.jlIndependent reference implementations (no shared code) the tests compare with
test/agreement.jlAgreement checks against the oracles on random and adversarial pairs
test/test_agreement.jlRuns those checks
test/test_basics.jlSmoke tests on small fixed inputs
test/test_contract.jlThe input contract of the public functions: too few vertices, element types and dimensions, parameters
test/test_decide.jlfrechet_c_decide_exact against the oracle, frechet_c_compute, exact boundary cases, point types
test/test_exact.jlfrechet_c_compute_exact: the kinetic sweep, the oracle, exact values, independence of the random sample
test/test_hilbert.jlCurves in a HilbertSpace against the same computations on coordinates
test/test_point_types.jlVector-point and matrix curves against static points
test/test_duplicates.jlRepeated consecutive vertices
test/test_errors.jlThe library throws instead of exiting the process
test/test_hygiene.jlType aliases are constants; morphing validation checks every coordinate
test/test_morphing_events.jlMorphings do not cut corners between events
test/test_primitives.jlZero-length segments in the distance primitives and range functions
test/test_range.jlRange functions with any upper bound; tight tolerances
test/test_review.jlRegression tests for the defects of the code review of 2026-11
test/test_silence.jlThe library writes nothing to stdout
test/test_termination.jlComputations that once looped forever (simplifying zero-width curves), run in a fresh process under a time limit
test/test_aqua.jlPackage quality checks (Aqua.jl)
test/snapshots/golden.jl, test/snapshots/golden_ext.jlDump plain-number snapshots of the results of the main functions
test/snapshots/compare.jl, test/snapshots/compare.rbCompare two snapshots, or a git revision with the working tree, bit for bit

tools/

The development workflow (each script has --help).

FileContents
tools/check, tools/gateThe quality gate: tools/lint, the checks of tools/settings.rb, tools/test
tools/lintStatic checks: julia-audit and julia-static-analysis (syntax, formatting)
tools/testThe test suite
tools/docs_coverage.rbEvery file outside src/ is named in this manual (run by the gate)
tools/build, tools/installBuild and install the artifacts (none: this is a package)
tools/snapshot, tools/commitA local checkpoint commit; a commit after the gate
tools/bump, tools/releaseA version bump; commit, bump, push
tools/publishRegisters a released version in the General registry
tools/settings.rbThe settings of the workflow for this repository
tools/tooling.rb, tools/language.rb, tools/tmp_space.rbThe shared code of the scripts: the workflow, the Julia-specific steps, temporary files

example_higher/

Curves in high dimensions, with their own environment (example_higher/Project.toml, activated by QuickEnv). Run from the root of the repository; data go to example_higher/data/, results to example_higher/output/. More in example_higher/README.md, High-dimensional curves: comparison with Fred and Curves in Hilbert spaces.

FileContents
example_higher/README.mdThe examples, their results, and how to run them
example_higher/Project.tomlTheir environment
example_higher/download.rb, example_higher/trials.txtDownloads the 41 CMU motion-capture trials listed (with their activity)
example_higher/mocap.jlReads the motion-capture files into curves in ℝ^46
example_higher/compare_two.jlFive distances between two trials, and the order they must satisfy
example_higher/distance_matrix.jlAll-pairs distances of the trials and their nearest neighbours
example_higher/prepare_pems.rb, example_higher/prepare_kth.rbDownload the traffic and video data and write their curves
example_higher/prepare_kth_all.rbThe whole KTH database as curves (frames at 40 × 30 pixels)
example_higher/download_hydraulic.rbDownloads the hydraulic test rig data
example_higher/curves.jl, example_higher/fred_curves.pyAll-pairs distances of a prepared set, with FrechetDist and with Fred
example_higher/hydraulic.jl, example_higher/fred_hydraulic.pyThe same for the hydraulic curves (ℝ^6000)
example_higher/exact_curves.jlThe exact distances of a set, and the errors of the others against them
example_higher/check_frechet.jlAn independent check of the distances (textbook Alt–Godau, no shared code)
example_higher/point_types.jlStatic against vector points, per dimension
example_higher/hilbert_timing.jl, example_higher/hilbert_accuracy.jlCoordinates against a Hilbert space of the same points: time, and agreement
example_higher/kth_classify.jlAction classification on KTH by nearest neighbours under distances between clips
example_higher/mcnemar.rbMcNemar's exact test between two classifiers