findPeaks: Find highest peaks in a time series

Description Usage Arguments Value Author(s) Examples

View source: R/RcppExports.R

Description

Inspired in the quantmod::findPeaks() R algorithm, this function find the highest peaks in a time series.

Usage

1

Arguments

x

Armadillo vector with numeric element

Value

Armadillo unsigned vector with the index representing the position of the selected peaks

Author(s)

Roberto Maestre

Examples

1
2
3
4
5
## Not run: 
# simple call: Returns position 1,4 and 7 with the highest peaks
findPeaks(c(1,2,1,2,10,1,2,3,1))

## End(Not run)

rmaestre/variableStars documentation built on April 11, 2020, 11:10 p.m.