get.num.modes {rflowcyt} | R Documentation |
get.num.modes returns the number of modes of the gaussian kernel estimate for a given data vector and bandwidth on the standardized scale
get.num.modes(x, h)
x |
the data vector |
h |
the bandwidth for the standardized data vector |
x |
number of modes |
Kevin Rader
B.W. Silverman (1981),Using Kernel Density Estimates to Investigate Multimodatlity. J.R. Statist. Soc. B,43,1,97-99.
set.seed(12345) x<-rnorm(50) h<-get.h(x) num<-c(get.num.modes(x,h),get.num.modes(x,h-0.005)) num