Avena Webapp API - v0.0.1
    Preparing search index...

    Function startCapture

    • Starts a capture around a trigger from the live buffer.

      Parameters

      • buffer: DataPoint[]

        Live buffer, sorted by time.

      • triggerTime: number

        Time of the crossing sample, Unix ms.

      • windows: { postWindowSec: number; preWindowSec: number }

        Pre and post windows, seconds.

      Returns TriggerCapture

      The capture, complete if the buffer already reaches the window end.