peaksign2 | R Documentation |
My version, starting from Brian Ripley's and informed by all the others
peaksign2(series, span = 3, do.pad = TRUE)
series |
the vector of numbers to find peaks in. |
span |
the window size to use when looking for lower values. |
do.pad |
should the result be padded to the input series length? Default is TRUE. |
return (-1 / 0 / 1) if series[i] is ( trough / "normal" / peak )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.