Description Usage Arguments Details Value Examples
Calculate local minimum within a local neighborhood
1 | localMin(vec, neighborhood)
|
vec |
a vector to be evaluated for the presence of local minimum |
neighborhood |
number of points to the left and right of a point for calculating local minima (see details). |
'neighborhood = 1' will detect local minima at position 'i' defind as a point that is less than both its neighbors to the left '(i-1)' and right '(i+1)'. Setting 'neighborhood > 1' results in detecting local minima at a position 'i' defined as a point that is less than all neighboring points to the left 'c(i-1, i-..., i-n)' and right 'c(i+1, i+..., i+n)'.
a logical vector masking the positions of local minima
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.