feat: Add math modules — stats, scale, epsilon, score, signal #1

Merged
Snider merged 1 commit from host-uk/Poindexter:feat/math-modules into main 2026-02-16 16:19:30 +00:00
Collaborator

Summary

  • Adds 5 new math modules centralizing operations used across core/go-ai, core/go, and core/mining
  • stats: Sum, Mean, Variance, StdDev, MinMax, IsUnderrepresented
  • scale: Lerp, InverseLerp, Remap, RoundToN, Clamp, MinMaxScale
  • epsilon: ApproxEqual, ApproxZero
  • score: WeightedScore, Ratio, Delta, DeltaPercent
  • signal: RampUp, SineWave, Oscillate, Noise (seeded RNG)

235 LOC implementation, 509 LOC tests, zero external deps, WASM-safe.

Positions Poindexter as the math pillar (Borg=data, Enchantrix=encryption, Poindexter=math).

Test plan

  • All new tests pass (go test ./...)
  • go vet clean
  • Existing tests unaffected
  • WASM build verification

🤖 Generated with Claude Code

## Summary - Adds 5 new math modules centralizing operations used across core/go-ai, core/go, and core/mining - **stats**: Sum, Mean, Variance, StdDev, MinMax, IsUnderrepresented - **scale**: Lerp, InverseLerp, Remap, RoundToN, Clamp, MinMaxScale - **epsilon**: ApproxEqual, ApproxZero - **score**: WeightedScore, Ratio, Delta, DeltaPercent - **signal**: RampUp, SineWave, Oscillate, Noise (seeded RNG) 235 LOC implementation, 509 LOC tests, zero external deps, WASM-safe. Positions Poindexter as the math pillar (Borg=data, Enchantrix=encryption, Poindexter=math). ## Test plan - [x] All new tests pass (`go test ./...`) - [x] `go vet` clean - [x] Existing tests unaffected - [ ] WASM build verification 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Charon added 1 commit 2026-02-16 16:18:48 +00:00
feat: Add math modules — stats, scale, epsilon, score, signal
Some checks failed
CI / build-test-wasm (pull_request) Has been cancelled
CI / build-test-gonum (pull_request) Has been cancelled
Tests / test (pull_request) Has been cancelled
fa998619dc
Centralizes common math operations used across core/go-ai, core/go,
and core/mining into Poindexter as the math pillar (alongside Borg=data,
Enchantrix=encryption).

New modules:
- stats: Sum, Mean, Variance, StdDev, MinMax, IsUnderrepresented
- scale: Lerp, InverseLerp, Remap, RoundToN, Clamp, MinMaxScale
- epsilon: ApproxEqual, ApproxZero
- score: WeightedScore, Ratio, Delta, DeltaPercent
- signal: RampUp, SineWave, Oscillate, Noise (seeded RNG)

235 LOC implementation, 509 LOC tests, zero external deps, WASM-safe.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Snider merged commit 544a3bf5ad into main 2026-02-16 16:19:30 +00:00
Snider deleted branch feat/math-modules 2026-02-16 16:19:30 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Snider/Poindexter#1
No description provided.