local_maxima | R Documentation |
Find local maxima in a vector of real values.
local_maxima(x)
x |
A vector of real numbers |
A vector of integers corresponding to local maxima positions in vector x
t <- seq(-10,10,length=1000) x <- dnorm(t,mean=3)+dnorm(t,mean=7) yM <- local_maxima(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.