Intervals containing values
[indices] = CL_intervSearch(interv, vals [[, crit]])
Returns the intervals (actually the interval indices) where values are found to be.
If a value does not belong to any interval, 0 is returned.
Two selection criteria are available:
- "o" (interval order): the returned index is the index of the first found interval that contains the input value.
- "d" (distance to center): the returned index is the index of the interval whose center is the closest to the input value.
Set of intervals [start; end] with start <= end (2xN)
Set of values (any size)
(string, optional) Selection criterion: "o" or "d". Default is "o"
Interval indices (same size as vals)
CNES - DCT/SB