get_maxima: estimate local maxima within a numeric distribution

Description Usage Arguments Value Examples

Description

Note that this function tends to overestimate the number of maxima in the distribution, which is compensated for by only picking the biggest of the peaks later on.

Usage

1
get_maxima(z_scores)

Arguments

z_scores

numeric vector of Z-transformed log2-ratio data for parental population

Value

vector of maxima positions

Examples

1
2
get_maxima(rnorm(100, mean=0, sd=1))
get_maxima(c(rnorm(100, mean=0, sd=1), rnorm(20, mean=4, sd=1)))

jeremymcrae/cifer documentation built on May 19, 2019, 5:08 a.m.