find_optima: Find Optima

Description Usage Arguments Value Author(s) References Examples

View source: R/potential_analysis.R

Description

Detect optima, excluding local optima below peak.threshold.

Usage

1
find_optima(f, peak.threshold = 0, bw = 1, min.density = 1)

Arguments

f

density

peak.threshold

Mode detection threshold

bw

bandwidth

min.density

Minimun accepted density for a maximum; as a multiple of kernel height

Value

A list with min (minima), max (maxima), and peak.threshold (minimum detection density)

Author(s)

Leo Lahti leo.lahti@iki.fi

References

See citation('microbiome')

Examples

1
2
   # Not exported
   # o <- find_optima(rnorm(100), bw=1)

microbiome documentation built on Nov. 8, 2020, 5:08 p.m.