Fast Geyer saturation simulator (Rcpp backend; polygon-clipped)
Source:R/simulate_points_geyer_fast.R
simulate_points_geyer_fast.RdRuns a fixed-n Metropolis–Hastings sampler in the domain bounding box and then clips points to the polygon.
This implementation is heuristic but internally consistent (see C++ header): it targets a saturation potential based on per-point neighbour counts. It is not a drop-in reproduction of the exact spatstat Geyer saturation process likelihood.
The result is thinned to return exactly n_target points. If clipping leaves
too few points, we generate additional points (never by duplicating existing ones).
Usage
simulate_points_geyer_fast(
domain,
n_target,
r,
gamma,
sat,
sweeps = 2000,
burnin = 200,
thin = 1
)