rStats.js v1.3.0
    Preparing search index...

    Function findInterval

    • For each value, the number of break points at or below it (the interval index). Equivalent to R's findInterval(). vec must be non-decreasing.

      Parameters

      Returns number[]

      findInterval([0, 1.5, 3, 5], [1, 2, 3]); // [0, 1, 3, 3]