exceedances function

Compute exceedances of a threshold for a time series