https://github.com/cran/spatstat
Raw File
Tip revision: 2af0235a57146624ae8d5b148d47d8d0ab351213 authored by Adrian Baddeley on 14 May 2007, 05:36:09 UTC
version 1.11-5
Tip revision: 2af0235
eem.R
# eem.R
#
# Computes the Stoyan-Grabarnik "exponential energy weights" 
#
# $Revision: 1.2 $ $Date: 2006/06/02 08:39:24 $
#

eem <- function(fit, check=TRUE) {
  verifyclass(fit, "ppm")
  lambda <- fitted.ppm(fit, check=check)
  Q <- quad.ppm(fit)
  Z <- is.data(Q)
  eemarks <- 1/lambda[Z]
  attr(eemarks, "type") <- "eem"
  attr(eemarks, "typename") <- "exponential energy marks"
  return(eemarks)
}
back to top