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

    Class Trend

    Fits a line through recent readings, so a slow drift is visible before it matters.

    Index
    • Creates an empty trend estimator over up to capacity readings, 32 unless told fewer.

      A line needs two readings, so capacity is at least 2.

      Parameters

      • Optionalcapacity: number | null

      Returns Trend

    • get slope(): number | null

      The fitted slope in units per reading, or null without two readings.

      A positive slope is a rising signal.

      Returns number | null