Compute exceedances of a threshold for a time series
Compute exceedances of a threshold for a time series
exceedances(x,...)## Default S3 method:exceedances(x,...)## S3 method for class 'nhpp'exceedances(x,...)## S3 method for class 'ts'exceedances(x,...)## S3 method for class 'double'exceedances(x, threshold = mean(x, na.rm =TRUE),...)
Arguments
x: a numeric vector coercible into a stats::ts object
...: arguments passed to methods
threshold: A value above which to exceed. Default is the mean()
Returns
An ordered integer vector giving the indices of the values of x
that exceed the threshold.
Examples
# Retrieve exceedances of the series meanfit_nhpp(DataCPSim, tau =826)|> exceedances()# Retrieve exceedances of a supplied thresholdfit_nhpp(DataCPSim, tau =826, threshold =200)|> exceedances()