simoncarrignon / mixed-transmission

GNU General Public License v3.0
1 stars 0 forks source link

Distance-proportionnal migration #28

Closed simoncarrignon closed 10 months ago

simoncarrignon commented 10 months ago

I finally implemented a function to randomly select available partners based on their sex and community. It's probably far from optimal, but the maine problem for now is that in case of multiple availability priority should be given to closer communities.

Function doing that so far is : https://github.com/simoncarrignon/mixed-transmission/blob/fc836d2e616624e386dc489a430df76121eaa585/R/marriage.R#L7-L39

simoncarrignon commented 10 months ago

A few commit should have fixed that, here is how the probability to migrate are, smaller size is more likely: image