2 Commits
Author SHA1 Message Date
Leonid PershinandClaude Opus 4.8 d360093be1 Add Trapezoidal suitability function and corresponding tests
CI / build-test (push) Successful in 1m10s
Introduced a new Trapezoid method in the Suitability class to model suitability with a hard tolerance band and a plateau. The method returns suitability values based on defined limits and optimal ranges. Added comprehensive unit tests to validate the functionality, including edge cases for flat plateaus, linear ramps, and hard limits.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-13 04:34:32 +03:00
Leonid PershinandClaude Opus 4.8 d0104df304 Add Suitability.Gaussian for optimum-tolerance bell curves
CI / build-test (push) Successful in 1m28s
A small AI helper computing how well a value matches a preferred optimum: a
Gaussian bell in [0,1], 1 at the optimum, e^-0.5 one tolerance away, over an
arbitrary input scale (unlike ResponseCurve's monotonic [0,1] shaping). The
building block for environment-suitability growth. Covered by tests.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-12 17:52:11 +03:00