| Library: | spatial |
| See also: | SPPPinit SPPPinitrandom SPPPsetregion SPPPgetregion SPPPkfn SPPPpsim SPPPstrauss SPPPssi SPPPkenvl |
| Quantlet: | SPPPkaver | |
| Description: | Computes average of simulations of K-fns. |
| Usage: | ppkaver = SPPPkaver (fs, k, obj) | |
| Input: | ||
| fs | scalar - full scale of the plot | |
| k | scalar - number of regularly spaced distances in (0, fs) | |
| obj | list - (of type "PSIM", "STRAUSS", or "SSI") consisting of xmat, ymat, and type, caculated by SPPPpsim, SPPPstrauss, or SPPPssi | |
| Output: | ||
| res | list - consisting of components hx, aver -- | |
| hx | k x 1 - vector of distances | |
| aver | k x 1 - vector of averages of K-fn | |
; 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)
; calculate the average in interval (0, 5), split
; into 100 segments
ppkaver = SPPPkaver (5, 100, sppsim)
List, consisting of distances and averages of K-fn.
| Library: | spatial |
| See also: | SPPPinit SPPPinitrandom SPPPsetregion SPPPgetregion SPPPkfn SPPPpsim SPPPstrauss SPPPssi SPPPkenvl |