Randomly samples submatrices (quadrats) of specified size from a binary matrix, and returns the positions, submatrices, and count of 1s in each sampled quadrat.
count_subareas_random(matrix_data, sub_rows = 3, sub_cols = 3, n_samples = 100)A list of sampled subgrids. Each element is a list with:
Row and column start position of the sample.
The sampled subgrid matrix.
Number of 1s in the sampled submatrix.
A binary matrix of 0s and 1s.
Number of rows in each subgrid sample.
Number of columns in each subgrid sample.
Number of subgrid samples to draw.
Other Spatial analysis:
AFSD(),
BPL(),
count_subareas(),
fit_gradients(),
join_count(),
oruns_test(),
oruns_test_boustrophedon(),
oruns_test_byrowcol(),
plot_AFSD()