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

    Class SimulatedSensor

    A sensor that invents plausible readings.

    Index
    • Creates a sensor that reads around a baseline.

      Parameters

      • baseline: number

        the value it reads before drift and noise.

      • OptionaldriftPerRead: number | null

        how much the baseline moves each read.

      • Optionalnoise: number | null

        the amplitude of the wobble around it.

      • Optionalseed: number | null

        the seed for that wobble, so a run repeats.

      Returns SimulatedSensor

    • Takes the next reading.

      Returns Promise<number>