modecent:
Returns locations of modes of a density estimate
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
modecent(lst)
Arguments
lst
level set tree object;
list containing lst$parent and lst$center;
output of "leafsfirst", "profgene", "profhist", or "profkern"
Value
The rows of output are d-vectors specifying the locations of the modes.