find.local.minima: Find Local Minima in a KDE

find.local.minimaR Documentation

Find Local Minima in a KDE

Description

Find the valleys in a Kernel Density Estimate.

Usage

find.local.minima(kde, thresh = 0.001, show = FALSE, ...)

Arguments

kde

The input Kernel Density Estimate

thresh

Threshold above which valleys are considered

show

Logical, should we display our work?

...

Additional arguments passed to par() par, Relevant only if show = TRUE.

Value

A list with three elements:

x

X coordinates of the detected peaks

y

Y coordinates of the detected peaks

pick

The indices in the original kde corresponding to the peaks


rogerswt/wadeTools documentation built on Feb. 16, 2023, 7:47 a.m.