R/cusum.R

Defines functions cusum

cusum = function(t){
  S = cumsum(t - mean(t))
  i = which(abs(S) == max(abs(S)))
  i
}

Try the kosel package in your browser

Any scripts or data that you put into this service are public.

kosel documentation built on July 18, 2019, 5:04 p.m.