![]() |
Quetzal-CoaTL
The Coalescence Template Library
|
#include <quetzal/demography/demographic_policy.hpp>
Dispersal kernel compatible with the mass-based policy, but that restricts migration to the vecinity of each deme.
This implementation should be chosen when the scale of the migration is much less than the scale of a deme. This class is not meant to be used directly, but instanciated through the use of the helper function make_neighboring_migration()
coords | a container of geopgrahic points |
f | a functor giving the migration coefficient between two points The signature should be equivalent to double f(T const& x, T const& Y) |
Public Types | |
using | coord_type = Space |
Public Member Functions | |
neighboring_migration (double emigrant_rate, F1 friction, F2 get_neighbors) | |
std::vector< coord_type > | arrival_space (coord_type const &x) const |
Defines arrival space (that is in this class case, vecinity plus focal deme) from coordinate x. | |
auto | operator() (coord_type const &from, coord_type const &to) |
Migration rate, operator interfaceable with History algorithm. | |
|
inline |
Defines arrival space (that is in this class case, vecinity plus focal deme) from coordinate x.