Description Usage Arguments Value
This takes a set of locations and a nonnegative weighting vector, and samples from the time-reversed migration probabilities, weighted by the weights.
1 | backmigrate(x, migration, weights)
|
x |
A vector of locations (indices). |
migration |
The |
weights |
A nonnegative vector of weights. |
A vector of locations of the same form as x
.
If the probability of migrating from i to j is M[i,j], then a sample at j will choose i
with probability equal to weights[i] M[i,j]/sum(weights*M[,j])
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.