R/ClassicRNG.R
TPIhelper.Rd
Find peaks/troughs
TPIhelper(y)
Numeric vector
converted y with values 1 (trough); 2 (decrease); 3 (same); 5 (increase); 5 (peak)