Function that takes an enmtools.model
object and simulates points
from it using a point process.
sim.points(
object,
n.points = 1000,
seed = NA,
sample.type = "ppp",
replace = FALSE,
threshold = NA,
...
)
entools.model object to simulate from
approximate number of points to simulate. You may get small number fewer or greater. If you need an exact number of points, generate too many, then drop the extra ones.
optional seed for the random number generator
method for sampling occurrence points. Default is "ppp", which is a poisson point process. Also accepts "binomial" for treating suitabilities as binomial trials, "thresh.pa" for sampling with equal probability every grid cell above a certain threshold value, and "thresh.con" for sampling in proportion to suitability above a certain threshold value.
whether to sample with replacement.
a threshold suitability below which probability of sampling drops to zero. Used for "thresh.pa" and "thresh.con" sampling.
additional parameters, not currently used but included for S3 compatability
A data frame of simulated points from the enmtools.model object