locmax

0th

Percentile

estimate locations of local maxima

estimate locations of local maxima

Keywords
models
Usage
locmax(x, t)
Arguments
x
series of function values to be searched
t
domain values (same length as x)
Details

uses diff, looks at boundaries

Value

  • a list with elements inds (indices for local max values) and dom (domain values)

Aliases
  • locmax
Examples
X = seq(-pi,pi,.01)
locmax(sin(X),X)
locmax(cos(X+pi),X+pi)
Documentation reproduced from package smoothMiner, version 0.1-10, License: Artistic-2.0

Community examples

Looks like there are no examples yet.