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

    Class Calibration

    Turns a raw sensor count into the units the reading is actually in.

    Index
    • Converts a raw reading into calibrated units.

      Parameters

      • raw: number

      Returns number

    • Creates a calibration applying raw * scale + offset.

      Parameters

      • scale: number
      • offset: number

      Returns Calibration

    • Creates a calibration fitted through two known reference points.

      Parameters

      • rawLow: number
      • valueLow: number
      • rawHigh: number
      • valueHigh: number

      Returns Calibration