Kmodel(model, ...)
pcfmodel(model, ...)
## S3 method for class 'kppm':
Kmodel(model, \dots)
## S3 method for class 'kppm':
pcfmodel(model, \dots)
kppm
. An object of
class "kppm"
.function
in the Rlanguage,
which takes one argument r
."kppm"
obtained from kppm
).
The functions Kmodel
and pcfmodel
are generic.
Currently the only method is for the class "kppm"
.
The return value is a function
in the Rlanguage,
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.kppm
,
Kest
,
pcf
data(redwood)
fit <- kppm(redwood, ~x, "MatClust")
K <- Kmodel(fit)
K(c(0.1, 0.2))
curve(K(x), from=0, to=0.25)
Run the code above in your browser using DataLab