Description Usage Arguments Details Examples
Directional connectivity matrix
1 | dci(mat, xgrain, ygrain)
|
mat |
matrix 2D matrix of zeros and ones, in which ones represent the landscape patch of interest. The axis of interest along which directional connectivity is computed is dimension 1 of this matrix. |
xgrain |
pixel length in cm (i.e., along dimension 1 of the variable "state") |
ygrain |
pixel width in cm (i.e., along dimension 2 of the variable "state") |
This function first converts a binary image to an adjacency matrix (larsen::im2adjacency). Next, this matrix is fed into a modified version of DCIu (DCIu_aont). DCIu_aont calls an underlying distance function in the process of returning a DCI value. The distance function (dijkstra_edit) requires requires an adjacency list which is created with the adj2adjL function.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.