Infrastructure · Primitives
Hysteresis
Preventing oscillation via asymmetric thresholds
Definition
Mechanism
Asymmetric Thresholds: State change from A→B requires crossing threshold T_up. State change from B→A requires crossing lower threshold T_down. Gap between thresholds prevents oscillation near boundary. Thresholds fixed or adaptive. It uses a Dampen effect on state transitions, requiring the signal to cross distinct upper and lower thresholds to switch modes.
Invariants
- `upper_threshold` is strictly greater than `lower_threshold`.
- The gap between them is at most `max_gap`.
- A→B needs `upper_threshold` crossed; B→A needs `lower_threshold` crossed.
Risks
Failure modes
Stuck {{state}}
the band is wide enough that the signal never reaches `lower_threshold` again.
Chatter
the band is narrow enough that noise alone crosses both thresholds.
Relationships
Builds on
Used by
References
Society
Cyclical connectivity modes
Society
Spam prevention via pressure thresholds
Reference
Parameters
upper_thresholdFloat, [0.0, 1.0]- Level the signal must exceed to switch from A to B.
lower_thresholdFloat, [0.0, 1.0]- Level the signal must fall below to switch back from B to A.
max_gapFloat, (0.0, 1.0)- Widest permitted band between the thresholds, so the system can still return.
