Description Usage Arguments Value Examples

A vector of booleans is returned with the same length as input (omitting NA's) which contains TRUE when there is a maximum. Simply sum up the vector to get the number of maxima.

1 | ```
getMaxima(x, thresh_rel = 0.2)
``` |

`x` |
Vector of numbers |

`thresh_rel` |
Minimum relative intensity to maximum intensity of 'x' required to be a maximum (i.e., a noise threshold). Default is 20%. |

Vector of bool's, where TRUE indicates a local maximum.

1 2 3 |

PTXQC documentation built on Feb. 9, 2018, 6:08 a.m.

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.