pamoja for TypeScript - v0.2.0
    Preparing search index...

    Class Trigger

    Fires once when a reading crosses a line, and not again until it has come back past the release band.

    Index
    • Feeds a reading in and returns the edge it caused, or null while nothing changed.

      Parameters

      • reading: number

      Returns Edge | null

    • Creates a trigger that fires when a reading rises above the line and clears once it has fallen below the line by the hysteresis.

      Parameters

      • threshold: number
      • hysteresis: number

      Returns Trigger

    • Creates a trigger that fires when a reading falls below the line and clears once it has risen above the line by the hysteresis.

      Parameters

      • threshold: number
      • hysteresis: number

      Returns Trigger