locofmax {denpro} | R Documentation |
Calculates the location of the maximum of a piecewise constant function.
locofmax(pcf)
pcf |
piecewise constant function; output of "pcf.kern" or "pcf.func" |
a d-vector; the location of the maximum; this is defined as the barycenter of the set where the function has the maximum
Jussi Klemela
dendat<-sim.data(n=100,type="mulmod") pcf<-pcf.kern(dendat,h=1,N=c(32,32)) locofmax(pcf)