Hysteresis
Preventing oscillation via asymmetric thresholds
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.
Parameters
- upper_threshold: type=Float, range=[0.0, 1.0], description=Level the signal must exceed to switch from A to B.
- lower_threshold: type=Float, range=[0.0, 1.0], description=Level the signal must fall below to switch back from B to A.
- max_gap: type=Float, range=(0.0, 1.0), description=Widest permitted band between the thresholds, so the system can still return.
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.
Where this came from
—
Builds on
Used by
- EbbFlowSync references
- OsmoticFilter references
Identity
- Ref:
Hysteresis#c2d1 - Hash: sema:Hysteresis#mh:SHA-256:c2d174f3fa513ed81bcd5b731aa651a3e4662a671748e514d758582657a5bf9a
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository