Add H4perp geometric heuristic for free-coordinate initialization#137
Open
terryspitz wants to merge 1 commit into
Open
Add H4perp geometric heuristic for free-coordinate initialization#137terryspitz wants to merge 1 commit into
terryspitz wants to merge 1 commit into
Conversation
Diagnostic sweep across 11 glyphs × 5 axis configs showed that starting Nelder-Mead from a perpendicular-arc offset (H4perp) wins 83% of 170 cases (mean rank 1.38) vs neighbour-average (rank 1.62) or designer hints (rank 1.71, worst). Solver.h4perpInit() runs after Phases 1-3 of initialise(). For each free coordinate it tries 7 candidates (chord midpoint + 6 perp offsets at ±10/20/35% of chord length), scores each with 50 Nelder-Mead iterations, and picks the lowest-error start — provided it beats the midpoint by >10% (threshold prevents noise-driven regressions in symmetric geometries). Also handle MaximumIterationsException from MathNet NelderMeadSimplex so low-iteration quick-scores complete gracefully. Update docs/DactylSpline.md with the diagnostic results, algorithm description, and rationale. https://claude.ai/code/session_013FzUDrEU4omtyJJtnSaqrP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Diagnostic sweep across 11 glyphs × 5 axis configs showed that
starting Nelder-Mead from a perpendicular-arc offset (H4perp) wins
83% of 170 cases (mean rank 1.38) vs neighbour-average (rank 1.62)
or designer hints (rank 1.71, worst).
Solver.h4perpInit() runs after Phases 1-3 of initialise(). For each
free coordinate it tries 7 candidates (chord midpoint + 6 perp offsets
at ±10/20/35% of chord length), scores each with 50 Nelder-Mead
iterations, and picks the lowest-error start — provided it beats the
midpoint by >10% (threshold prevents noise-driven regressions in
symmetric geometries).
Also handle MaximumIterationsException from MathNet NelderMeadSimplex
so low-iteration quick-scores complete gracefully.
Update docs/DactylSpline.md with the diagnostic results, algorithm
description, and rationale.
https://claude.ai/code/session_013FzUDrEU4omtyJJtnSaqrP