Description Usage Arguments Value Author(s) See Also Examples
Calculates a scale of greedy histograms. The histograms in the scale have a partition of growing cardinality. Returns a sequence of estimates as piecewise constant functions and optionally as level set trees. Optionally a shape tree for a level set of each estimate is calculated.
1 | lstseq.greedy(dendat, maxleaf, lstree = NULL, level = NULL)
|
dendat |
n*d data matrix |
maxleaf |
integer>1; the scale consists of histograms whose partitions have cardinality 1,...,maxleaf |
lstree |
if NULL, then level set trees are not calculated |
level |
if NULL, then shape trees are not calculated; if positive number, then it is the level of the level sets for which the shape trees are calculated |
A list with components
lstseq |
a list of level set trees |
pcfseq |
a list of piecewise constant functions |
stseq |
a list of shape trees |
hseq |
a vector of smoothing parameters corresponding to the members in the sequences; the smoothing parameter is the cardinality of the partition |
Jussi Klemela
1 2 3 4 5 6 7 8 9 | library(denpro)
dendat<-sim.data(n=100,seed=1,type="mulmodII")
estiseq<-lstseq.greedy(dendat,maxleaf=20,lstree=TRUE)
mt<-modegraph(estiseq)
plotmodet(mt)
#scaletable(estiseq)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.