screen_within_block: Remove multiple exceedances within non-overlapping blocks of fixed length
Description
Remove multiple exceedances within non-overlapping blocks of fixed lengths, for use in declustering
Usage
screen_within_block(y, index, blockLength = 10)
Arguments
- y
vector of values
- index
vector of indices, one per value, that indicate which elements of y
are consecutive
- blockLength
length of block within which to remove all but the most extreme value