# rinter: Generate interaction point patterns In stpp: Space-Time Point Pattern simulation, visualisation and analysis

## Description

Generate one (or several) realisation(s) of the inhibition or contagious process in a region S x T.

## Usage

 1 2 3 rinter(npoints,s.region,t.region,hs="step",gs="min",thetas=0,deltas, ht="step",gt="min",thetat=1,deltat,recent="all",nsim=1,discrete.time=FALSE, replace=FALSE,inhibition=TRUE,...)

## Arguments

 npoints number of points to simulate. s.region two-column matrix specifying polygonal region containing all data locations. If s.region is missing, the unit square is considered. t.region vector containing the minimum and maximum values of the time interval. If t.region is missing, the interval [0,1] is considered. hs, ht function which depends on the distance between points and theta. Can be chosen among "step" and "gaussian" or can refer to a user defined function which only depend on d, theta, and delta (see details). If inhibition=TRUE, h is monotone, increasing, and must tend to 1 when the distance tends to infinity. 0 <= h(d,theta) <= 1. Otherwise, h is monotone, decreasing, and must tend to 1 when the distance tends to 0. thetas, thetat Parameters of hs and ht functions. deltas, deltat Spatial and temporal distance of inhibition. gs, gt Compute the probability of acceptance of a new point from hs or ht and recent. Must be choosen among "min", "max" and "prod". recent If “all” consider all previous events. If is an integer, say N, consider only the N most recent events. nsim number of simulations to generate. Default is 1. discrete.time if TRUE, times belong to N, otherwise belong to R^+. replace Logical. If TRUE allows times repeat. inhibition Logical. If TRUE, an inhibition process is generated. Otherwise, it is a contagious process. ... Additional parameters if hs and ht are defined by the user.

## Value

A list containing:

 xyt matrix (or list of matrices if nsim>1) containing the points (x,y,t) of the simulated point pattern. xyt (or any element of the list if nsim>1) is an object of the class stpp. s.region, t.region parameters passed in argument.

## Author(s)

Edith Gabriel <edith.gabriel@univ-avignon.fr>, Peter J Diggle.