locofmax: Calculates the location of the maximum of a function

Description Usage Arguments Value Author(s) See Also Examples

View source: R/locofmax.R View source: R/denpro.R

Description

Calculates the location of the maximum of a piecewise constant function.

Usage

1
locofmax(pcf)

Arguments

pcf

piecewise constant function; output of "pcf.kern" or "pcf.func"

Value

a d-vector; the location of the maximum; this is defined as the barycenter of the set where the function has the maximum

Author(s)

Jussi Klemela

See Also

pcf.kern, pcf.func

Examples

1
2
3
4
dendat<-sim.data(n=100,type="mulmod")
pcf<-pcf.kern(dendat,h=1,N=c(32,32))

locofmax(pcf)

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