https://github.com/cran/spatstat
Raw File
Tip revision: 5a436c167dd0570e05176bc483891fbda4db4f53 authored by Adrian Baddeley on 24 September 2004, 00:00:00 UTC
version 1.5-4
Tip revision: 5a436c1
ord.S
#
#
#    ord.S
#
#    $Revision: 1.2 $	$Date: 2001/08/07 11:52:17 $
#
#    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,
         family    = ord.family,
         pot      = pot,
         par      = NULL,
         parnames = NULL,
         init     = NULL,
         update   = NULL, 
         print = function(self) {
           cat(paste(self$name, "\n"))
           cat("Potential function:\n")
           print(self$pot)
           invisible()
         }
  )
  class(out) <- "interact"
  return(out)
}
back to top