modecent: Returns locations of modes of a density estimate

Description Usage Arguments Value Author(s) See Also Examples

View source: R/denpro.R View source: R/modecent.R

Description

With "modecent" we may find the location of the modes of a function. Argument to function "modecent" is the level set tree of the function. A mode is defined here to be the barycenter of a set at which the estimate has a local maximum.

Usage

1
modecent(lst)

Arguments

lst

level set tree object; list containing lst$parent and lst$center; output of "leafsfirst", "profgene", "profhist", or "profkern"

Value

modenum*d-matrix; for each mode its location. The rows of output are d-vectors specifying the locations of the modes.

Author(s)

Jussi Klemela

See Also

leafsfirst, profkern, plotbary

Examples

1
2
3
4
5
set.seed(1)
dendat<-matrix(rnorm(20),10)   #10*2 data-matrix
pcf<-pcf.kern(dendat,h=2,N=c(16,16))
lst<-leafsfirst(pcf)
modecent(lst)

denpro documentation built on May 2, 2019, 8:55 a.m.