Learn R Programming

denpro (version 0.9.2)

locofmax: Calculates the location of the maximum of a function

Description

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

Usage

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

See Also

pcf.kern, pcf.func

Examples

Run this code
dendat<-sim.data(n=100,type="mulmod")
pcf<-pcf.kern(dendat,h=1,N=c(32,32))

locofmax(pcf)

Run the code above in your browser using DataLab