window_cv: Compute the coefficient of variation (var/mean) in a sliding...

Description Usage Arguments Value See Also

Description

Compute the coefficient of variation (var/mean) in a sliding window

Usage

1
  window_cv(X, windowsize = length(X)/2)

Arguments

X

a numeric containing evenly sampled values from a time series

windowsize

the size of the sliding time window (in # of pts) used to compute the statistic.

Value

a numeric of size length(X)-windowsize of values of the statistic calculated in the sliding window.

See Also

warningtrend


cboettig/earlywarning documentation built on May 13, 2019, 2:07 p.m.