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.
findInterval()
vec
findInterval([0, 1.5, 3, 5], [1, 2, 3]); // [0, 1, 3, 3] Copy
findInterval([0, 1.5, 3, 5], [1, 2, 3]); // [0, 1, 3, 3]
For each value, the number of break points at or below it (the interval index). Equivalent to R's
findInterval().vecmust be non-decreasing.