feat(SNNBot): thermometer speed encoding for precise lead discrimination

3-bit speed encoding couldn't distinguish speed 3 from speed 5 —
9° of lead error baked into the input. Thermometer coding with 8 bits
gives 1-bit Hamming distance between adjacent speeds. MAX_K back to 128.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-09-16 23:10:04 +02:00
parent be4e9549ef
commit cc3c2649c2
2 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import std/[bitops, math]
const
INPUT_BITS* = 80
WORDS_IN* = 2 # 80 bits → 2 × uint64 (128 bits, only 80 used)
MAX_K* = 64
MAX_K* = 128
MIN_SIM* = 3
type