https://github.com/cran/spatstat
Tip revision: dea80ce2cc25e3ce0e8fde7b488edd3621048dde authored by Adrian Baddeley on 28 July 2003, 18:02:22 UTC
version 1.3-3
version 1.3-3
Tip revision: dea80ce
pairwise.S
#
#
# pairwise.S
#
# $Revision: 1.3 $ $Date: 2002/04/07 10:44:48 $
#
# Pairwise() create a user-defined pairwise interaction process
# [an object of class 'interact']
#
# -------------------------------------------------------------------
#
Pairwise <- function(pot, name = "user-defined pairwise interaction process",
par = NULL, parnames=NULL,
printfun) {
if(missing(printfun))
printfun <- function(self) {
cat(paste(self$name, "\n"))
cat("Potential function:\n")
print(self$pot)
}
out <-
list(
name = name,
family = pairwise.family,
pot = pot,
par = par,
parnames = parnames,
init = NULL,
update = NULL,
print = printfun
)
class(out) <- "interact"
return(out)
}