# Simulate a stationary separable Mat\'ern ST-DPP
if (requireNamespace("spatstat", quietly = TRUE)) {
sim <- rstDPP(
mode = "stationary",
model = "S",
spectral = "matern",
alpha_s = 10,
alpha_t = 4.7,
nu = 2,
eps = 1,
lambda_max = 70,
grid_size = 2
)
plot_stDPP(sim, type = "3D", alpha_s = 10, alpha_t = 4.7)
# example 2
# Generate realization
sim <- rstDPP(mode = "stationary",
model = "S",
spectral = "matern",
alpha_s = 10, alpha_t = 4.7,
nu = 2,
eps = 1,
lambda_s = 70,
lambda_non_s = NULL,
grid_size = 2,
lambda_max=70)
head(sim)
}
Run the code above in your browser using DataLab