excmas: Computes the excess masses associated with the nodes of a...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/denpro.R View source: R/excmas.R

Description

Given a level set tree, calculates the excess mass for every node of the tree. The excess mass is the probability mass under the curve, over a given level, in a certain branch of the level set tree. For example, function "leafsfirst" returns a level set tree.

Usage

1
excmas(lst)

Arguments

lst

level set tree object; list of vectors which is the output of for example "leafsfirst", "profkern", "profhist", or "profgene"

Value

Vector whose length is equal to the number of nodes of the level set tree.

Author(s)

Jussi Klemela

See Also

leafsfirst, plottree

Examples

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

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