Description Usage Arguments Value
This converts a migration matrix computed for one raster into a migration matrix for another raster that is coarser than the first. This function does no re-normalization.
1 2 3 |
M |
The migration matrix. |
old |
The original Raster* the migration matrix was computed for. |
new |
The Raster* for the new migration matrix. |
from.old |
The indices of the "from" cells corresponding to rows in the original migration matrix. |
to.old |
The indices of the "to" cells corresponding to columns in the original migration matrix. |
from.new |
The indices of the "from" cells corresponding to rows in the resulting migration matrix. |
to.new |
The indices of the "to" cells corresponding to columns in the resulting migration matrix. |
A migration matrix. See migrate
.
The resulting matrix has [i,j]th entry equal to the average over all rows in the old matrix that correspond to 'i'
of the sum of columns in that row corresponding to j. In other words, if the old matrix M is indexed by [u,v],
then the new matrix's [i,j]th entry is:
(1/n(j)) sum_v: j(v)=j sum_u : i(u)=i M[u,v]
where n(j) = # v : j(v)=j .
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.