find_optima {microbiome} | R 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)

[Package microbiome version 1.14.0 Index]