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

  1. `upper_threshold` is strictly greater than `lower_threshold`.
  2. The gap between them is at most `max_gap`.
  3. A→B needs `upper_threshold` crossed; B→A needs `lower_threshold` crossed.

Risks

Failure modes

  1. Stuck {{state}}

    the band is wide enough that the signal never reaches `lower_threshold` again.

  2. Chatter

    the band is narrow enough that noise alone crosses both thresholds.

Relationships

Builds on

References

Physics

Dampen

Passive attenuation of signal or force

State

System condition at time T

Used by

References

Reference

Parameters

upper_threshold Float, [0.0, 1.0]
Level the signal must exceed to switch from A to B.
lower_threshold Float, [0.0, 1.0]
Level the signal must fall below to switch back from B to A.
max_gap Float, (0.0, 1.0)
Widest permitted band between the thresholds, so the system can still return.

Identity

Ref
Hysteresis#c2d1
Sema ID
sema:Hysteresis#mh:SHA-256:c2d174f3fa513ed81bcd5b731aa651a3e4662a671748e514d758582657a5bf9a
Ring
0
Tier
2
Updated
2026-11-11
Supersedes
  • sema:Hysteresis#mh:SHA-256:78b01a1947793415b84de8f1883f9e3853f08e62b6647a38e51048d4ecbeb33a
  • sema:Hysteresis#mh:SHA-256:f1dfdb23e9c63915250dc6ff0b8447d728649aa00a69a0f57b6ce9d0c6f534a7