find.local.maxima: Find Local Maxima in a KDE

View source: R/dist_histogram_analysis.R

find.local.maximaR Documentation

Find Local Maxima in a KDE

Description

Find the peaks in a Kernel Density Estimate.

Usage

find.local.maxima(kde, thresh = 0.05, show = FALSE, ...)

Arguments

kde

The input Kernel Density Estimate

thresh

Threshold above which peaks 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.