prunemodes: Prunes modes away from a level set tree or a shape tree
Description
Prunes smallest modes in terms of the excess mass away, from a level set tree
or froma a shape tree.
The tree is interpreted as a 1D function (in the sense of a volume function,
radius function, or a tail probability function).
The pruning may be useful to get cleaner plots,
especially a location plot of a shape tree may suffer from spurious modes.