Generates background sample as null for species distribution modeling and other things.
Sample random background points using a vector of probability weights.
Arguments
- calib
A SpatRaster of the species calibration area. If a polygon, convert to SpatRaster using rasterize.
- spatkde
A weighted or unweighted Gaussian Kernel Density estimate (KDE) for all input occurrence records.
- size
An positive integer of the number of samples to generate.
- ...
further arguments passed to or from other methods.
- ras
Input SpatRaster
- prob
Vector of probability weights for obtaining the points sampled.
