File: poisson.R

package info (click to toggle)
r-cran-spatstat.core 2.4-4-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,440 kB
  • sloc: ansic: 4,402; sh: 13; makefile: 5
file content (47 lines) | stat: -rw-r--r-- 1,001 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#
#
#    poisson.S
#
#    $Revision: 1.9 $	$Date: 2022/03/07 03:58:22 $
#
#    The Poisson process
#
#    Poisson()    create an object of class 'interact' describing
#                 the (null) interpoint interaction structure
#                 of the Poisson process.
#	
#
# -------------------------------------------------------------------
#	

Poisson <- local({

  BlankPoisson <- list(
    name     = "Poisson process",
    creator  = "Poisson",
    family   = NULL,
    order    = 1,
    pot      = NULL,
    par      = NULL,
    parnames = NULL,
    init     = function(...) { },
    update   = function(...) { },
    print    = function(self) {
      cat("Poisson process\n")
      invisible()
    },
    valid = function(...) { TRUE },
    project = function(...) NULL, 
    irange = function(...) { 0 },
    version=NULL
    )
  
  class(BlankPoisson) <- "interact"

  Poisson <- function() { BlankPoisson }

  Poisson <- intermaker(Poisson, BlankPoisson)

  Poisson
})