find_optima: Find Optima

View source: R/potential_analysis.R

find_optimaR Documentation

Find Optima

Description

Detect optima, excluding local optima below peak.threshold.

Usage

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

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

microbiome/microbiome documentation built on Aug. 22, 2023, 7:12 a.m.