https://github.com/cran/spatstat
Raw File
Tip revision: e04d5b52846caef810a58cd5e19ccbc930c83d14 authored by Adrian Baddeley on 27 October 2007, 05:15:04 UTC
version 1.12-2
Tip revision: e04d5b5
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