Skip to content

Commit

Permalink
Use localPopulationDensity in vignette_space.slim
Browse files Browse the repository at this point in the history
In SLiM 4, localPopulationDensity() is added to find local population density around an individual
  • Loading branch information
jiseonmin authored Oct 11, 2023
1 parent 76ed446 commit 5f403bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/vignette_space.slim
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ initialize() {
}

reproduction() {
neighbor_density = i1.totalOfNeighborStrengths(individual);
neighbor_density = i1.localPopulationDensity(individual);
num_offspring = rpois(1, LAMBDA / (1 + neighbor_density / K));
mate = i1.drawByStrength(individual, 1); // single mating
if (size(mate) > 0) {
Expand Down

0 comments on commit 5f403bc

Please sign in to comment.