pynapple.core.interval_set.IntervalSet.in_interval#

IntervalSet.in_interval(tsd)[source]#

finds out in which element of the interval set each point in a time series fits.

NaNs for those that don’t fit an interval

Parameters:

tsd (Tsd) – The tsd to be binned

Returns:

out – an array with the interval index labels for each time stamp (NaN) for timestamps not in IntervalSet

Return type:

numpy.ndarray