sliding_maxima: Sliding block maxima

Description Usage Arguments Details Value See Also

Description

Calculates the maxima of all blocks of b contiguous values in the vector x.

Usage

1
sliding_maxima(x, b = 1)

Arguments

x

A numeric vector of raw observations.

b

A numeric scalar. The block size.

Details

The function rollapply in the zoo package is used with argument FUN = max to calculate sliding (rolling) maxima. na.rm = TRUE is passed to max so that blocks containing missing values produce a non-missing result.

sliding_maxima is used within spm_mle to perform semiparametric estimation of the extremal index based on block maxima.

Value

A list containing

See Also

spm_mle for semiparametric estimation of the extremal index based on block maxima.

disjoint_maxima for the calculation of the maxima over disjoint blocks.


ConstantinosChr/exdex documentation built on May 14, 2019, 4:16 p.m.