
Random Subgrid Sampling of a Binary Matrix
Source:R/count_subareas_random.R
count_subareas_random.Rd
Randomly samples submatrices (quadrats) of specified size from a binary matrix, and returns the positions, submatrices, and count of 1s in each sampled quadrat.
Value
A list of sampled subgrids. Each element is a list with:
- position
Row and column start position of the sample.
- submatrix
The sampled subgrid matrix.
- count
Number of 1s in the sampled submatrix.
See also
Other Spatial analysis:
AFSD()
,
BPL()
,
count_subareas()
,
fit_gradients()
,
join_count()
,
oruns_test()
,
oruns_test_boustrophedon()
,
oruns_test_byrowcol()
,
plot_AFSD()