Randomly selects valid (non-NODATA) cells from a reference grid for use as background points in MaxEnt modeling.
Value
A named list with:
- rows
Integer vector of row indices (0-based).
- cols
Integer vector of column indices (0-based).
- indices
Integer vector of 0-based flat indices (
row * ncols + col), suitable formaxent_featured_space.
Examples
if (FALSE) { # \dontrun{
dim <- maxent_dimension(100, 100, -120, 35, 0.1)
grid <- maxent_grid(dim, "env1")
bg <- maxent_background_indices(grid, n = 5000, seed = 42)
bg$indices # 0-based flat indices for FeaturedSpace
} # }