Revision 2cce766bb3e656de2c829da29ab8c51681004900 authored by Adrian Baddeley on 11 November 2010, 00:00:00 UTC, committed by Gabor Csardi on 11 November 2010, 00:00:00 UTC
1 parent 6bd38f3
rSSI.Rd
\name{rSSI}
\alias{rSSI}
\title{Simulate Simple Sequential Inhibition}
\description{
Generate a random point pattern, a realisation of the
Simple Sequential Inhibition (SSI) process.
}
\usage{
rSSI(r, n, win = owin(c(0,1),c(0,1)), giveup = 1000, x.init=NULL)
}
\arguments{
\item{r}{
Inhibition distance.
}
\item{n}{
Number of points to generate.
}
\item{win}{
Window in which to simulate the pattern.
An object of class \code{"owin"}
or something acceptable to \code{\link{as.owin}}.
}
\item{giveup}{
Number of rejected proposals after which the algorithm should terminate.
}
\item{x.init}{
Optional. Initial configuration of points. A point pattern
(object of class \code{"ppp"}).
}
}
\value{
The simulated point pattern (an object of class \code{"ppp"}).
}
\details{
This algorithm generates a realisation of the Simple Sequential
Inhibition point process
inside the window \code{win}.
Starting with an empty window (or with the point pattern \code{x.init}
if specified), the algorithm adds points
one-by-one. Each new point is generated uniformly in the window
and independently of preceding points. If the new point lies
closer than \code{r} units from an existing point, then it is rejected
and another random point is generated.
The algorithm terminates either when the desired number \code{n}
of points is reached, or when the current point configuration
has not changed for \code{giveup} iterations.
}
\seealso{
\code{\link{rpoispp}},
\code{\link{rMaternI}},
\code{\link{rMaternII}}.
}
\examples{
pp <- rSSI(0.05, 200)
\dontrun{plot(pp)}
}
\author{Adrian Baddeley
\email{Adrian.Baddeley@csiro.au}
\url{http://www.maths.uwa.edu.au/~adrian/}
and Rolf Turner
\email{r.turner@auckland.ac.nz}
}
\keyword{spatial}
\keyword{datagen}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...