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

    Function upperBound

    • Finds the first point after a time by binary search.

      Parameters

      • data: DataPoint[]

        Points sorted by timestamp.

      • time: number

        Time in Unix ms.

      Returns number

      Index of the first point with timestamp > time, or data.length.