Skip to main content

score_signal

Function score_signal 

Source
pub fn score_signal(signal: &ToolSignals) -> ScoreResult
Expand description

Score a signal: weighted sum of the dimensions, tanh-squashed.

The raw sum is small — one maxed signal is ±0.10, two corroborating signals ±0.20. tanh(gain·raw) spreads that into a usable range, so the confidence_threshold reads roughly: ~0.3 escalates on one signal, ~0.5 needs about one-and-a-half, ~0.7 needs two to corroborate.