findTimeInterval

fun findTimeInterval(time: Double, startIndex: Int): Int(source)

Finds an index i in times such that the parameter time is in the interval [times[i], times[i + 1]].

Return

The index for the element at the start of the interval.

Parameters

time

The time.

startIndex

The index from which to start the search.

See also