homog.STPP {stpphawkes}R Documentation

Simulate a homogenous space-time Poisson process

Description

This function simulates a homogenous space-time Poisson process on W, defined by polygon

Usage

homog.STPP(
  mu,
  poly,
  t.region,
  xfrac = 0.1,
  yfrac = 0.1,
  remove = FALSE,
  checkpoly = TRUE,
  showplot = FALSE
)

Arguments

mu

- background parameter

poly

- matrix defining polygon (N x 2)

t.region

- vector of two elements describing time span

xfrac

- x fractional increase of polygon to handle boundary effects (default = .1)

yfrac

- y fractional increase (default = .1)

remove

- remove points outside polygon (default = FALSE)

checkpoly

- check if polygon is proper (default = TRUE)

showplot

- plot points (default = FALSE)

Value

A DataFrame containing x,y,t

Examples

out = homog.STPP(0.5,matrix(c(0,0,1,1,0,1,1,0),ncol=2),c(0,10))  

[Package stpphawkes version 0.2.1 Index]