Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: spatial
See also: SPPPinit SPPPinitrandom SPPPsetregion SPPPgetregion SPPPkfn SPPPstrauss SPPPssi SPPPkenvl SPPPkaver

Quantlet: SPPPpsim
Description: Simulates a Binomial (Poisson) spatial point process. Note that SPPPinit or SPPPsetregion must have been called before to set the domain. To be able to reproduce results, reset the random number generator for point processes by calling SPPPinitrandom first.

Reference(s):

Link:
Usage: ppsim = SPPPpsim (nsim, n)
Input:
nsim scalar - number of simulations
n scalar - number of points in the domain
Output:
res list - consisting of components xmat, ymat, type --
xmat n x nsim - matrix consisting of x coordinates
ymat n x nsim - matrix consisting of y coordinates
type string - "PSIM"

Note:

Example:

; load the spatial statistics library

library ("spatial")

; read a spatial data set

pines = read ("pines.dat")

; initialize a point process

pinesobj = SPPPinit (pines, 0, 96, 0, 100, 10)

; reset random number generator

SPPPinitrandom (0)

; simulate 100 Binomial point processes, each consisting

; of 72 points, in the previously determined domain

ppsim = SPPPpsim (100, 72)

Result:

List, consisting of x and y coordinates of 100 Binomial

point processes, each consisting of 72 points.


Library: spatial
See also: SPPPinit SPPPinitrandom SPPPsetregion SPPPgetregion SPPPkfn SPPPstrauss SPPPssi SPPPkenvl SPPPkaver

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Author: Juergen Symanzik, 000725
(C) MD*TECH Method and Data Technologies, 21.9.2000