findPeak: Find peaks using the estimated values

findPeakR Documentation

Find peaks using the estimated values

Description

Find peaks using the estimated values

Usage

findPeak(k, filter, select)

Arguments

k

Output of the 'kdeC' function, containing estimated values.

filter

A numeric value used to filter out results with estimated values less than the given 'filter' argument.

select

A numeric value specifying the number of peaks to retain, selecting the K peaks with the largest estimated values.

Value

A three-column matrix ('markMat') where: - Column 1: x-coordinates of the peaks - Column 2: y-coordinates of the peaks - Column 3: Corresponding estimated values of the peaks.

Examples

data(r)
k <- kdeC(r$dat, H = c(0.014, 0.014), gridsize = c(330, 330), cutNum = c(1, 1), w = r$z)
m <- findPeak(k, filter = 0, select = 100)

WPKDE documentation built on June 8, 2025, 11:24 a.m.

Related to findPeak in WPKDE...