R/swf.clumper.regular.r
swf.clumper.regular.Rd
This function modifies a discrete matrix to increase aggregation of SWF habitat categories, starting from an initial allocation of habitat (specified by swfCat) and non-habitat (specified by agriCat). The function follows a growing approach, where habitat seeds are clumped in two dimensions, while keeping the total habitat size constant.
swf.clumper.regular(
Hmatrix = null.mt,
swfCat,
agriCat,
foreCat = 3,
Q,
sigma,
iterations = 20,
kernelCl = 20,
kernelRw = 20,
NNeighbors = 0,
maxDistance = 5,
Density = "H",
queensCase = FALSE,
np = 1,
deBug = FALSE
)
A matrix representing the initial habitat state.
Integer representing habitat category in the matrix.
Integer representing non-habitat category in the matrix.
Integer representing fores (habitat) category in the matrix.
Integer representing the number of cells to be moved in each kernel per iteration.
Number of iterations for the aggregation process.
Vertical size of the kernel for processing.
Horizontal size of the kernel for processing.
Threshold of neighbours in a kernel below which habitat pixels are moved in a kernel.
Searching radius for habitat pixel aggregation.
Strategy for selecting the cell as a gravity center. "H" to choose area with high habitat cover, "L" from low, "M" for median density.
If TRUE, all 8 directions are considered for neighbors; if FALSE, only orthogonal neighbors are considered.
Number of cores for parallel processing.
If TRUE, debugging information is provided.