findPeak | R Documentation |
Find peaks using the estimated values
findPeak(k, filter, select)
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. |
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.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.