For certain types of point process models, it is possible to
write down a mathematical expression for the \(K\) function
or the pair correlation function of the model. In particular this
is possible for a fitted cluster point process model
(object of class `"kppm"`

obtained from `kppm`

).

The functions `Kmodel`

and `pcfmodel`

are generic.
The functions documented here are the methods for the class `"kppm"`

.

The return value is a `function`

in the R language,
which takes one argument `r`

.
Evaluation of this function, on a numeric vector `r`

,
yields values of the desired \(K\) function or pair correlation
function at these distance values.