Description Usage Arguments Details Value Author(s) See Also Examples

Find local maximum by transform the vector as matrix, then get the the maximum of each column. This operation is performed twice with vecctor shifted half of the winSize.

1 | ```
localMaximum(x, winSize = 5)
``` |

`x` |
a vector represents a signal profile |

`winSize` |
the slide window size, 5 by default. |

Instead of find the local maximum by a slide window, which slide all possible positions, we find local maximum by transform the vector as matrix, then get the the maximum of each column. This operation is performed twice with vecctor shifted half of the winSize. The main purpose of this is to increase the efficiency of the algorithm.

Return a vector with the same length of the input x. The position of local maximum is set as 1, 0 else where.

Pan Du

1 2 3 4 5 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.