{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "Hysteresis",
 "ref": "Hysteresis#c2d1",
 "hash": "sema:Hysteresis#mh:SHA-256:c2d174f3fa513ed81bcd5b731aa651a3e4662a671748e514d758582657a5bf9a",
 "stub": "c2d1",
 "layer": "Infrastructure",
 "type": "Primitives",
 "summary": "Preventing oscillation via asymmetric thresholds",
 "mechanism": "Asymmetric Thresholds: State#4f25 change from A→B requires crossing threshold T_up. State#4f25 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#c07e 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": [
  {
   "name": "upper_threshold",
   "type": "Float",
   "range": "[0.0, 1.0]",
   "description": "Level the signal must exceed to switch from A to B."
  },
  {
   "name": "lower_threshold",
   "type": "Float",
   "range": "[0.0, 1.0]",
   "description": "Level the signal must fall below to switch back from B to A."
  },
  {
   "name": "max_gap",
   "type": "Float",
   "range": "(0.0, 1.0)",
   "description": "Widest permitted band between the thresholds, so the system can still return."
  }
 ],
 "signature": [],
 "preconditions": [],
 "postconditions": [],
 "failure_modes": [
  "Stuck State#4f25: 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."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "Hysteresis",
 "builds_on": [
  {
   "alias": "dampen",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Dampen",
   "ref": "Dampen#c07e",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Dampen"
  },
  {
   "alias": "state",
   "relation": "references",
   "library": "bootstrap",
   "slug": "State",
   "ref": "State#4f25",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/State"
  }
 ],
 "related": [],
 "used_by": [
  {
   "slug": "EbbFlowSync",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/EbbFlowSync"
  },
  {
   "slug": "OsmoticFilter",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/OsmoticFilter"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/Hysteresis",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/Hysteresis.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
