powered by
This function generate a random point pattern using Simple Sequential Inhibition (SSI) process. An internal function for SDALGCP package.
SDALGCP
SDALGCPSSIPoint( poly, delta, weighted = FALSE, pop_shp = NULL, lambdamax = NULL, pop = NULL, n = NULL, rho = NULL, giveup = NULL )
polygon in which to generate the points.
distance between points.
To specify if you want to use the population density, default to FALSE, i.e population density is not used.
Optional, The raster of population density map for population weighted approach.
the maximum value of the population density in the polygon.
the population density.
optional; the number of points to create in the polygon, if not supplied, it is computed as \(n = rho*|A|*4/(\pi*delta^2)\)
Optional, The packing density, default set to 0.55.
Number of rejected proposals after which the algorithm should terminate.
It returns a list of the coordinates of the points created in each polygon.
This algorithm generates points inside the polygon using Simple Sequential Inhibition (SSI) process.
# NOT RUN { data(PBCshp) points <- SDALGCPSSIPoint(poly=PBCshp@polygons[[1]]@Polygons[[1]]@coords, delta=100) # }
Run the code above in your browser using DataLab