https://github.com/cran/spatstat
Tip revision: d606122dc24b56ecf537d55eda38f4bf5ac4de1f authored by Adrian Baddeley on 25 October 2010, 10:40:51 UTC
version 1.20-5
version 1.20-5
Tip revision: d606122
ord.S
#
#
# ord.S
#
# $Revision: 1.4 $ $Date: 2007/01/11 03:36:02 $
#
# Ord process with user-supplied potential
#
# Ord() create an instance of the Ord process
# [an object of class 'interact']
# with user-supplied potential
#
#
# -------------------------------------------------------------------
#
Ord <- function(pot, name) {
if(missing(name))
name <- "Ord process with user-defined potential"
out <-
list(
name = name,
creator = "Ord",
family = ord.family,
pot = pot,
par = NULL,
parnames = NULL,
init = NULL,
update = function(self, ...){
do.call(Ord,
resolve.defaults(list(...),
list(pot=self$pot, name=self$name)))
} ,
print = function(self) {
cat(paste(self$name, "\n"))
cat("Potential function:\n")
print(self$pot)
invisible()
},
version=versionstring.spatstat()
)
class(out) <- "interact"
return(out)
}