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

    Function selectTimeWindow

    • Returns the points with start <= t <= end, optionally with one neighbor on each side so a line can run to the edge of the plot (the canvas clips it there).

      Parameters

      • data: DataPoint[]

        Points sorted by time.

      • start: number

        Window start, Unix ms.

      • end: number

        Window end, Unix ms.

      • withNeighbors: boolean = false

        Also keep the closest point outside each edge.

      Returns DataPoint[]

      A new array.